mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 06:28:29 +00:00
Merge pull request #49852 from fawaaaz111/patch-4
fix: SQL operator precedence in Project query customer filter
This commit is contained in:
@@ -318,7 +318,7 @@ def get_project_name(doctype, txt, searchfield, start, page_len, filters):
|
|||||||
if filters:
|
if filters:
|
||||||
if filters.get("customer"):
|
if filters.get("customer"):
|
||||||
qb_filter_and_conditions.append(
|
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"):
|
if filters.get("company"):
|
||||||
|
|||||||
Reference in New Issue
Block a user