Skip to content

Commit

Permalink
Merge pull request Aspen-Discovery#1871 from catsoup11789/24.07.00
Browse files Browse the repository at this point in the history
fix for saving fields
  • Loading branch information
K-Alette authored Jun 20, 2024
2 parents 132032f + 5e2a1e1 commit c28031c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions code/web/interface/themes/responsive/Search/home.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
{/foreach}
</div>

{if !empty($isLoggedIn)}
<div class="row text-center" style="margin-top: 2em">
<div class="col-xs-12">
<hr/>
<a class="btn {if !empty($showBrowseContent)}btn-default{else}btn-primary{/if}" href="#" role="button" title="{translate text='Show Hidden Browse Categories' inAttribute=true isPublicFacing=true}" onclick="return AspenDiscovery.Account.showHiddenBrowseCategories('{$loggedInUser}')">
<i class="fas fa-eye"></i> {translate text='Show Hidden Browse Categories' isPublicFacing=true}
</a>
</div>
</div>
{/if}

{else}
<div class="col-sm-12">
<div class="row text-center" id="browse-category-picker">
Expand Down
4 changes: 2 additions & 2 deletions code/web/interface/themes/responsive/theme.css.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion code/web/sys/DataObjectUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit c28031c

Please sign in to comment.