Merge pull request #37970 from KerollesFathy/fix/get-match-cond-unparenthesized-or
fix: wrap `get_match_cond()` in parentheses
This commit is contained in:
commit
071357de34
1 changed files with 1 additions and 1 deletions
|
|
@ -809,7 +809,7 @@ def get_match_cond(doctype, as_condition=True):
|
|||
if not as_condition:
|
||||
return cond
|
||||
|
||||
return ((" and " + cond) if cond else "").replace("%", "%%")
|
||||
return ((" and (" + cond + ")") if cond else "").replace("%", "%%")
|
||||
|
||||
|
||||
def build_match_conditions(doctype, user=None, as_condition=True):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue