Merge pull request #49900 from frappe/mergify/bp/version-15-hotfix/pr-49852

fix: SQL operator precedence in Project query customer filter (backport #49852)
This commit is contained in:
ruthra kumar
2025-10-06 13:21:58 +05:30
committed by GitHub

View File

@@ -313,7 +313,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"):