From ea033f9dd55407caa840e88255c31168d3c90225 Mon Sep 17 00:00:00 2001 From: bcornwellmott Date: Mon, 25 Jul 2016 10:00:42 -0700 Subject: [PATCH] Add return to the wrapper for save Save mistakenly removed the return function when a wrapper was added for it. This has created downstream issues, including preventing PUT requests through the API. --- frappe/model/document.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/model/document.py b/frappe/model/document.py index 7233b8623e..5f302ff788 100644 --- a/frappe/model/document.py +++ b/frappe/model/document.py @@ -239,7 +239,7 @@ class Document(BaseDocument): def save(self, *args, **kwargs): """Wrapper for _save""" - self._save(*args, **kwargs) + return self._save(*args, **kwargs) def _save(self, ignore_permissions=None): """Save the current document in the database in the **DocType**'s table or @@ -985,4 +985,4 @@ def execute_action(doctype, name, action, **kwargs): doc.add_comment('Comment', _('Action Failed') + '
' + frappe.get_traceback() + '
') - doc.notify_update() \ No newline at end of file + doc.notify_update()