Merge pull request #38469 from KerollesFathy/fix/not-in-filter-null-values

fix: remove null values from "not in" filter
This commit is contained in:
Ejaaz Khan 2026-04-09 14:13:18 +05:30 committed by GitHub
commit 525b7575b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -491,7 +491,10 @@ frappe.ui.filter_utils = {
const parsed = JSON.parse(val);
val = Array.isArray(parsed) ? parsed : [String(parsed)];
} catch {
val = val.split(",").map((v) => strip(v));
val = val
.split(",")
.map((v) => strip(v))
.filter((v) => v != null && v !== "");
}
}
} else if (frappe.boot.additional_filters_config[condition]) {