revert "refactor: get_docinfo without side effects"
This reverts commit 79f5a6b640.
This commit is contained in:
parent
e43cf12941
commit
300031aa36
1 changed files with 2 additions and 2 deletions
|
|
@ -42,8 +42,7 @@ def getdoc(doctype, name, user=None):
|
|||
|
||||
# add file list
|
||||
doc.add_viewed()
|
||||
frappe.response["docinfo"] = get_docinfo(doc)
|
||||
|
||||
get_docinfo(doc)
|
||||
|
||||
except Exception:
|
||||
frappe.errprint(frappe.utils.get_traceback())
|
||||
|
|
@ -119,6 +118,7 @@ def get_docinfo(doc=None, doctype=None, name=None):
|
|||
|
||||
update_user_info(docinfo)
|
||||
|
||||
frappe.response["docinfo"] = docinfo
|
||||
return docinfo
|
||||
|
||||
def add_comments(doc, docinfo):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue