Merge branch 'saurabh6790-exclude_quotes_in_get_event_conditions' into develop

This commit is contained in:
Anand Doshi 2016-05-23 15:03:59 +05:30
commit d779f8cf5d

View file

@ -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