From 943dc09f2919775988781aea99be642ec21117ab Mon Sep 17 00:00:00 2001 From: Charles-Henri Decultot Date: Mon, 11 Jun 2018 09:42:05 +0000 Subject: [PATCH] Customer timeline data hotfix --- erpnext/accounts/party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index a09c0a8c64..f6fc0bba35 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -417,7 +417,7 @@ def get_timeline_data(doctype, name): where reference_doctype='{doctype}' and reference_name='{name}' and status!='Success' and creation > {after} {group_by} order by creation desc - """.format(doctype=doctype, name=name, fields=fields, + """.format(doctype=frappe.db.escape(doctype), name=frappe.db.escape(name), fields=fields, group_by=group_by, after=after), as_dict=False) timeline_items = dict(data)