fix: wrap get_match_cond() in parentheses to prevent or bug
This commit is contained in:
parent
5092225cbc
commit
b7ca2fdf78
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