Skip to content

Commit

Permalink
#712 Approved lists and feature lists cannot be cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
schoicsiro committed Sep 24, 2023
1 parent d55c368 commit a586b70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grails-app/services/au/org/ala/profile/OpusService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class OpusService extends BaseDataAccessService {
opus.markDirty('approvedLists')
}
opus.approvedLists.addAll(json.approvedLists)
} else {
opus.approvedLists.removeAll(opus.approvedLists)
}

if (json.featureLists) {
Expand All @@ -82,6 +84,8 @@ class OpusService extends BaseDataAccessService {
opus.markDirty('featureLists')
}
opus.featureLists.addAll(json.featureLists)
} else {
opus.featureLists.removeAll(opus.featureLists)
}
opus.featureListSectionName = json.featureListSectionName ? json.featureListSectionName : null;

Expand Down

0 comments on commit a586b70

Please sign in to comment.