fix(error-report): Use error_report_email from config instead of hooks
This commit is contained in:
parent
200cc87677
commit
7b3304d7d7
2 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ def get_bootinfo():
|
|||
bootinfo.lang = text_type(bootinfo.lang)
|
||||
bootinfo.versions = {k: v['version'] for k, v in get_versions().items()}
|
||||
|
||||
bootinfo.error_report_email = frappe.get_hooks("error_report_email")
|
||||
bootinfo.error_report_email = frappe.conf.error_report_email
|
||||
bootinfo.calendars = sorted(frappe.get_hooks("calendars"))
|
||||
bootinfo.treeviews = frappe.get_hooks("treeviews") or []
|
||||
bootinfo.lang_dict = get_lang_dict()
|
||||
|
|
|
|||
|
|
@ -431,7 +431,7 @@ frappe.request.report_error = function(xhr, request_opts) {
|
|||
}
|
||||
|
||||
if (exc) {
|
||||
var error_report_email = (frappe.boot.error_report_email || []).join(", ");
|
||||
var error_report_email = frappe.boot.error_report_email;
|
||||
|
||||
request_opts = frappe.request.cleanup_request_opts(request_opts);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue