[UPDT] BASE: Updation in saveFilter.js file for filter function

This commit is contained in:
Horilla
2023-10-17 16:52:09 +05:30
parent ff8d151b72
commit 308a38c9e7
2 changed files with 5 additions and 2 deletions

View File

@@ -8,7 +8,10 @@ if (savedFilters != null) {
var value = filterDetails.filterData[fieldName];
// Set the value of the corresponding form field
let field = filterForm.find('[name="' + fieldName + '"]');
if (field.attr("data-exclude-saved-filter")!="true" && field.val() == "") {
if (
field.attr("data-exclude-saved-filter") != "true" &&
(field.val() == "" || field.val() == "unknown")
) {
field.val(value);
field.first().change();
}