fix: check for self linking (bp #10181) (#10426)

This commit is contained in:
mergify[bot] 2020-05-20 23:30:27 +05:30 committed by GitHub
parent 326d6a57fc
commit 4f6f9f3293
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,9 @@ def get_submitted_linked_docs(doctype, name, docs=None, linked=None):
linked[link_doctype] = []
for link in link_names:
if link['name'] == name:
continue
if linked and name in linked[link_doctype]:
continue