Skip to content

Commit

Permalink
collection view identifier for saved filter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kateryna Honchar committed Jun 10, 2022
1 parent 5d4d8db commit d244330
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ private void saveSearchItemToAdminConfig(AvailableFilterType availableFilter, Aj
addItemToPath = false;
}
if (objectListView.getIdentifier() == null) {
objectListView.setIdentifier(defaultCollectionViewIdentifier);
StringValue viewIdentifier = WebComponentUtil.getCollectionNameParameterValue(getPageBase());
objectListView.setIdentifier(viewIdentifier == null || viewIdentifier.isNull() || viewIdentifier.isNull() ?
defaultCollectionViewIdentifier : viewIdentifier.toString());
}
SearchBoxConfigurationType searchConfig = objectListView.getSearchBoxConfiguration();
if (addItemToPath) {
Expand Down

0 comments on commit d244330

Please sign in to comment.