diff --git a/code/web/interface/themes/responsive/Search/home.tpl b/code/web/interface/themes/responsive/Search/home.tpl index 6407640583..9f609817f2 100644 --- a/code/web/interface/themes/responsive/Search/home.tpl +++ b/code/web/interface/themes/responsive/Search/home.tpl @@ -35,6 +35,17 @@ {/foreach} + {if !empty($isLoggedIn)} +
+
+
+ + {translate text='Show Hidden Browse Categories' isPublicFacing=true} + +
+
+ {/if} + {else}
diff --git a/code/web/interface/themes/responsive/theme.css.tpl b/code/web/interface/themes/responsive/theme.css.tpl index 31eef0cf45..a8a74e1be6 100644 --- a/code/web/interface/themes/responsive/theme.css.tpl +++ b/code/web/interface/themes/responsive/theme.css.tpl @@ -258,13 +258,13 @@ div.striped > div:nth-child(odd), div.striped > div:nth-child(odd){ldelim} background-color: {$browseCategoryPanelColor}; {rdelim} -.browse-category,#browse-sub-category-menu button, .manual [role="tab"]{ldelim} +.browse-category,#browse-sub-category-menu button, .manual [role="tab"], .manual .hide-browse-sub-category{ldelim} background-color: {$deselectedBrowseCategoryBackgroundColor} !important; border-color: {$deselectedBrowseCategoryBorderColor} !important; color: {$deselectedBrowseCategoryForegroundColor} !important; {rdelim} -.browse-category.selected,.browse-category.selected:hover,#browse-sub-category-menu button.selected,#browse-sub-category-menu button.selected:focus,#browse-sub-category-menu button.selected:hover,#browse-sub-category-menu button:focus,#browse-sub-category-menu button:hover, .manual [role="tab"]:focus, .manual [role="tab"]:hover, .manual [role="tab"][aria-selected="true"]{ldelim} +.browse-category.selected,.browse-category.selected:hover,#browse-sub-category-menu button.selected,#browse-sub-category-menu button.selected:focus,#browse-sub-category-menu button.selected:hover,#browse-sub-category-menu button:focus,#browse-sub-category-menu button:hover, .manual [role="tab"]:focus, .manual [role="tab"]:hover, .manual [role="tab"][aria-selected="true"], .manual [role="tab"][aria-selected="true"] + .hide-browse-sub-category, .manual .hide-browse-sub-category:hover, .manual .hide-browse-sub-category:focus{ldelim} border-color: {$selectedBrowseCategoryBorderColor} !important; background-color: {$selectedBrowseCategoryBackgroundColor} !important; color: {$selectedBrowseCategoryForegroundColor} !important; diff --git a/code/web/sys/DataObjectUtil.php b/code/web/sys/DataObjectUtil.php index ff4eeec2b2..09f9fad462 100644 --- a/code/web/sys/DataObjectUtil.php +++ b/code/web/sys/DataObjectUtil.php @@ -145,7 +145,7 @@ static function validateObject($structure, $object) { static function updateFromUI($object, $structure, $fieldLocks) { foreach ($structure as $property) { - if ($fieldLocks != null && !in_array($property['property'], $fieldLocks)) { + if (($fieldLocks != null && !in_array($property['property'], $fieldLocks)) || $fieldLocks == null) { DataObjectUtil::processProperty($object, $property, $fieldLocks); } }