Merge pull request #49852 from fawaaaz111/patch-4

fix: SQL operator precedence in Project query customer filter
This commit is contained in:
ruthra kumar
2025-10-06 13:04:10 +05:30
committed by GitHub

View File

@@ -318,7 +318,7 @@ def get_project_name(doctype, txt, searchfield, start, page_len, filters):
if filters:
if filters.get("customer"):
qb_filter_and_conditions.append(
(proj.customer == filters.get("customer")) | proj.customer.isnull() | proj.customer == ""
(proj.customer == filters.get("customer")) | (proj.customer.isnull()) | (proj.customer == "")
)
if filters.get("company"):