This commit is contained in:
2020-02-21 21:42:34 +00:00
parent 5cd361c271
commit 3172289068

View File

@@ -749,6 +749,8 @@ export default {
filterItem.value filterItem.value
); );
//add only if not already in the collection (accidental double click) //add only if not already in the collection (accidental double click)
console.log("addFilterCondition::find is:");
console.log(window.$gz._.find);
if (!window.$gz._.find(item.filter.items, filterItem)) { if (!window.$gz._.find(item.filter.items, filterItem)) {
item.filter.items.push(filterItem); item.filter.items.push(filterItem);
window.$gz.form.setFormState({ window.$gz.form.setFormState({
@@ -1430,8 +1432,9 @@ function getDisplayForFilter(
break; break;
} }
//Operator
var opDisplay = window.$gz._.find(vm.pickLists.stringFilterOperators, { var opDisplay = window.$gz._.find(vm.pickLists.stringFilterOperators, {
id: filterValue id: filterOperator
}).name; }).name;
return opDisplay + ' "' + valueDisplay + '"'; return opDisplay + ' "' + valueDisplay + '"';