Skip to content

Commit

Permalink
Merge pull request #69 from LRadigkConTerra/master
Browse files Browse the repository at this point in the history
Fix Query not working when switching to $in with non-empty, non-array value
  • Loading branch information
matthiasstein committed Feb 16, 2024
2 parents 632f240 + 882f156 commit 29e3310
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/js/bundles/dn_querybuilder/FieldWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,11 @@
},
relationalOperatorChanged: function (relationalOperator, fieldQuery) {
const selectedField = this.selectedField;
if (fieldQuery.value === null || fieldQuery.value === "") { /* only if no value was selected*/
if (relationalOperator === "$in") {
fieldQuery.value = [];
} else if (fieldQuery.value === null || fieldQuery.value === "") { /* only if no value was selected*/
if (relationalOperator === "$exists") {
fieldQuery.value = true;
} else if (relationalOperator === "$in") {
fieldQuery.value = [];
} else {
if (selectedField.type === "date") {
fieldQuery.value = "";
Expand Down

0 comments on commit 29e3310

Please sign in to comment.