Skip to content

Commit

Permalink
parametric search items removal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Sep 28, 2022
1 parent 327d394 commit 39b3daf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ protected void searchPerformed(AjaxRequestTarget target){

private void deletePerformed(AjaxRequestTarget target) {
getModelObject().setVisible(false);
getModelObject().setValue(getModelObject().getDefaultValue());
SearchPanel panel = findParent(SearchPanel.class);
panel.displayedSearchItemsModelReset();
panel.refreshSearchForm(target);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public VariablesMap getFilterVariables(VariablesMap defaultVariables, PageBase p
VariablesMap variables = defaultVariables == null ? new VariablesMap() : defaultVariables;
List<AbstractSearchItemWrapper> items = getItems();
items.forEach(item -> {
if (StringUtils.isNotEmpty(item.getParameterName()) && item.isApplyFilter(SearchBoxModeType.BASIC)) {
if (StringUtils.isNotEmpty(item.getParameterName())) {
Object parameterValue = item.getValue() != null ? item.getValue().getValue() : null;
TypedValue value = new TypedValue(parameterValue, item.getParameterValueType());
variables.put(item.getParameterName(), value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ public static <C extends Containerable> PropertySearchItemWrapper createPropert
if (searchItemWrapper instanceof DateSearchItemWrapper) {
((DateSearchItemWrapper) searchItemWrapper).setInterval(false);
}
searchItemWrapper.setCanConfigure(false);
}

if (item.isVisibleByDefault() != null) {
Expand Down

0 comments on commit 39b3daf

Please sign in to comment.