瀏覽代碼

chore: make communication list exception helpful

* fixes infinite error recursion caused by window.history.back();
* throw an actually useful message instead of using msgprint

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
version-14
Chinmay D. Pai 5 年之前
父節點
當前提交
3ff3e71d34
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 75507BE256F40CED
共有 1 個檔案被更改,包括 1 行新增3 行删除
  1. +1
    -3
      frappe/public/js/frappe/views/inbox/inbox_view.js

+ 1
- 3
frappe/public/js/frappe/views/inbox/inbox_view.js 查看文件

@@ -17,9 +17,7 @@ frappe.views.InboxView = class InboxView extends frappe.views.ListView {
frappe.set_route("List", "Communication", "Inbox", email_account);
return true;
} else if (!route[3] || (route[3] !== "All Accounts" && !is_valid(route[3]))) {
frappe.msgprint(__('Invalid Email Account'));
window.history.back();
return true;
frappe.throw(__('No email account associated with the User. Please add an account under User > Email Inbox.'));
}
return false;



Loading…
取消
儲存