minor fix

This commit is contained in:
Nabin Hait 2016-03-16 14:54:26 +05:30
parent 737d81e45d
commit baea1f6d41

View file

@ -81,7 +81,7 @@ def delete_doc(doctype=None, name=None, force=0, ignore_doctypes=None, for_reloa
if "DocShare" in dynamic_linked_doctypes:
delete_shared(doc)
if "Email Unsubscribe":
if "Email Unsubscribe" in dynamic_linked_doctypes:
delete_email_subscribe(doc)
# check if links exist