fix for reverse linking (for dashboard) without filter
This commit is contained in:
parent
8921cb41b7
commit
01a9058a3b
1 changed files with 2 additions and 2 deletions
|
|
@ -230,7 +230,7 @@ frappe.ui.form.Dashboard = Class.extend({
|
|||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
} else if(this.data.fieldname) {
|
||||
frappe.route_options = this.get_document_filter(doctype);
|
||||
if(show_open) {
|
||||
frappe.ui.notifications.show_open_count_list(doctype);
|
||||
|
|
@ -250,7 +250,7 @@ frappe.ui.form.Dashboard = Class.extend({
|
|||
return filter;
|
||||
},
|
||||
set_open_count: function() {
|
||||
if(!this.data.transactions) {
|
||||
if(!this.data.transactions || !this.data.fieldname) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue