Merge pull request #7052 from netchampfaris/v12-patch-fixes
fix: Miscellaneous fixes for v12
This commit is contained in:
commit
9ef188cb7d
5 changed files with 9 additions and 6 deletions
|
|
@ -316,8 +316,9 @@ def evaluate_alert(doc, alert, event):
|
|||
except TemplateError:
|
||||
frappe.throw(_("Error while evaluating Notification {0}. Please fix your template.").format(alert))
|
||||
except Exception as e:
|
||||
frappe.log_error(message=frappe.get_traceback(), title=str(e))
|
||||
frappe.throw(_("Error in Notification"))
|
||||
error_log = frappe.log_error(message=frappe.get_traceback(), title=str(e))
|
||||
frappe.throw(_("Error in Notification: {}".format(
|
||||
frappe.utils.get_link_to_form('Error Log', error_log.name))))
|
||||
|
||||
def get_context(doc):
|
||||
return {"doc": doc, "nowdate": nowdate, "frappe.utils": frappe.utils}
|
||||
|
|
|
|||
|
|
@ -1015,7 +1015,8 @@ class Document(BaseDocument):
|
|||
version = frappe.new_doc('Version')
|
||||
if version.set_diff(self._doc_before_save, self):
|
||||
version.insert(ignore_permissions=True)
|
||||
follow_document(self.doctype, self.name, frappe.session.user)
|
||||
if not frappe.flags.in_migrate:
|
||||
follow_document(self.doctype, self.name, frappe.session.user)
|
||||
|
||||
@staticmethod
|
||||
def whitelist(f):
|
||||
|
|
|
|||
|
|
@ -200,6 +200,7 @@ frappe.patches.v9_1.move_feed_to_activity_log
|
|||
execute:frappe.delete_doc('Page', 'data-import-tool', ignore_missing=True)
|
||||
frappe.patches.v10_0.reload_countries_and_currencies
|
||||
frappe.patches.v10_0.refactor_social_login_keys
|
||||
execute:frappe.reload_doc('email', 'doctype', 'document_follow')
|
||||
frappe.patches.v10_0.enable_chat_by_default_within_system_settings
|
||||
frappe.patches.v10_0.remove_custom_field_for_disabled_domain
|
||||
execute:frappe.delete_doc("Page", "chat")
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ def execute():
|
|||
|
||||
for record in duplicateRecords:
|
||||
frappe.db.sql("""delete from `tabUser Permission`
|
||||
where allow='{0}' and user='{1}' and for_value='{2}' limit {3}"""
|
||||
.format(record.allow, record.user, frappe.db.escape(record.for_value), record.count - 1))
|
||||
where allow=%s and user=%s and for_value=%s limit {0}"""
|
||||
.format(record.count - 1), (record.allow, record.user, record.for_value))
|
||||
|
|
|
|||
|
|
@ -729,7 +729,7 @@
|
|||
"issingle": 0,
|
||||
"istable": 0,
|
||||
"max_attachments": 0,
|
||||
"modified": "2017-09-05 14:01:05.658719",
|
||||
"modified": "2017-09-05 14:02:05.658719",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Printing",
|
||||
"name": "Print Format",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue