Merge pull request #19277 from rohitwaghchaure/not_able_to_use_webhook

fix: name 'link_link_doctype' is not defined
This commit is contained in:
Suraj Shetty 2019-10-10 14:24:04 +05:30 committed by GitHub
commit a1de447662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ def get_last_interaction(contact=None, lead=None):
if link.link_doctype == 'Customer':
last_issue = get_last_issue_from_customer(link.link_name)
query_condition += "(`reference_doctype`=%s AND `reference_name`=%s) OR"
values += [link_link_doctype, link_link_name]
values += [link.link_doctype, link.link_name]
if query_condition:
# remove extra appended 'OR'