This commit is contained in:
@@ -379,9 +379,15 @@ export default {
|
||||
items: []
|
||||
};
|
||||
this.editItem.filter.items.forEach(function(z) {
|
||||
//de-arrayify tag filters
|
||||
let filterValue = z.value;
|
||||
if (Array.isArray(filterValue)) {
|
||||
filterValue = z.value.join(); //array to string
|
||||
}
|
||||
|
||||
newColumnFilter.items.push({
|
||||
op: z.op,
|
||||
value: z.value
|
||||
value: filterValue
|
||||
});
|
||||
});
|
||||
|
||||
@@ -467,6 +473,7 @@ export default {
|
||||
) {
|
||||
filterItem.op = editItem.tempFilterOperator;
|
||||
filterItem.value = editItem.tempFilterValue;
|
||||
|
||||
//only add if there is both an op and a value
|
||||
//above here for tokens that isn't a restriction but
|
||||
//after passing through those conditions were at a point where there MUST be both
|
||||
@@ -869,8 +876,15 @@ editItemFilter:{ "any": false, "items": [] }
|
||||
}
|
||||
|
||||
//If it's a tag and it's not been set yet it needs to have an empty array to stat with for the picker
|
||||
if (o.uiFieldDataType == 9 && o.tempFilterValue == null) {
|
||||
o.tempFilterValue = [];
|
||||
//otherwise it needs to be converted to an array from a comma delimited string for the picker as well
|
||||
if (o.uiFieldDataType == 9) {
|
||||
if (o.tempFilterValue == null) {
|
||||
o.tempFilterValue = [];
|
||||
} else {
|
||||
//should be a comma delimited string, turn into array
|
||||
console.log("nitEditItem tag filter items=", o.filter.items);
|
||||
o.tempFilterValue = o.filter.items[0].split(",");
|
||||
}
|
||||
}
|
||||
|
||||
//Add display text for filter item (same as in addFilterCondition)
|
||||
|
||||
Reference in New Issue
Block a user