Merge branch 'saurabh6790-exclude_quotes_in_get_event_conditions' into develop
This commit is contained in:
commit
d779f8cf5d
1 changed files with 1 additions and 1 deletions
|
|
@ -29,6 +29,6 @@ def get_event_conditions(doctype, filters=None):
|
|||
filters = json.loads(filters)
|
||||
for key in filters:
|
||||
if filters[key]:
|
||||
conditions += " and " + key + ' = "' + filters[key].replace('"', '\"') + '"'
|
||||
conditions += 'and `{0}` = "{1}"'.format(frappe.db.escape(key), frappe.db.escape(filters[key]))
|
||||
|
||||
return conditions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue