Skip to content

Commit

Permalink
Fix custom quick filter preselect validation (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
OothecaPickle authored May 12, 2024
1 parent 67005c2 commit 5869174
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public SearchingConfig prepareForSaving(BaseConfig oldBaseConfig, SearchingConfi
for (Iterator<String> iterator = newConfig.getPreselectQuickFilterButtons().iterator(); iterator.hasNext(); ) {
String preselectQuickFilterButton = iterator.next();
final String[] split = preselectQuickFilterButton.split("\\|");
if ("custom".equals(split[0]) && !customQuickfilterNames.contains(split[0])) {
if ("custom".equals(split[0]) && !customQuickfilterNames.contains(split[1])) {
logger.info("Custom quickfilter {} doesn't exist anymore, removing it from list of filters to preselect.", preselectQuickFilterButton);
iterator.remove();
}
Expand Down

0 comments on commit 5869174

Please sign in to comment.