From 8dbf05dc03087005db914cf88524ce9a958b7a4d Mon Sep 17 00:00:00 2001 From: labkey-susanh Date: Wed, 24 Jan 2024 08:35:26 -0800 Subject: [PATCH] Audit comments are not required if that feature is not enabled. --- api/src/org/labkey/api/data/Container.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/org/labkey/api/data/Container.java b/api/src/org/labkey/api/data/Container.java index 620e84567c5..b1f2bbe0c54 100644 --- a/api/src/org/labkey/api/data/Container.java +++ b/api/src/org/labkey/api/data/Container.java @@ -1035,12 +1035,14 @@ public FolderType getFolderType() public Boolean getAuditCommentsRequired() { Map props = PropertyManager.getProperties(this, AUDIT_SETTINGS_PROPERTY_SET_NAME); + if (!AdminConsole.isProductFeatureEnabled(ProductFeature.DataChangeCommentRequirement)) + return false; return Boolean.parseBoolean(props.getOrDefault(REQUIRE_USER_COMMENTS_PROPERTY_NAME, "false")); } /** * Sets the default module for a "mixed" type folder. We try not to create - * these any more. Instead each folder is "owned" by a module + * these anymore. Instead, each folder is "owned" by a module */ public void setDefaultModule(Module module) {