Merge pull request #8585 from Thunderbottom/email-inbox-fix
chore: make communication list exception helpful
This commit is contained in:
commit
de77b5e408
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue