Skip to content

Commit

Permalink
MID-8400 Fixed date search from GUI not being ge/le search
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Dec 19, 2022
1 parent d9433e3 commit 61d8a73
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,20 @@ public ObjectFilter createFilter(Class type, PageBase pageBase, VariablesMap var
if (singleDate != null && intervalSecondDate != null) {
return ctx.queryFor(type)
.item(path)
.gt(singleDate)
.ge(singleDate)
.and()
.item(path)
.lt(intervalSecondDate)
.le(intervalSecondDate)
.buildFilter();
} else if (singleDate != null) {
return ctx.queryFor(type)
.item(path)
.gt(singleDate)
.ge(singleDate)
.buildFilter();
} else if (intervalSecondDate != null) {
return ctx.queryFor(type)
.item(path)
.lt(intervalSecondDate)
.le(intervalSecondDate)
.buildFilter();
}
return null;
Expand Down

0 comments on commit 61d8a73

Please sign in to comment.