ソースを参照

fix for reverse linking (for dashboard) without filter

version-14
Ameya Shenoy 7年前
コミット
01a9058a3b
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      frappe/public/js/frappe/form/dashboard.js

+ 2
- 2
frappe/public/js/frappe/form/dashboard.js ファイルの表示

@@ -230,7 +230,7 @@ frappe.ui.form.Dashboard = Class.extend({
} else { } else {
return false; return false;
} }
} else {
} else if(this.data.fieldname) {
frappe.route_options = this.get_document_filter(doctype); frappe.route_options = this.get_document_filter(doctype);
if(show_open) { if(show_open) {
frappe.ui.notifications.show_open_count_list(doctype); frappe.ui.notifications.show_open_count_list(doctype);
@@ -250,7 +250,7 @@ frappe.ui.form.Dashboard = Class.extend({
return filter; return filter;
}, },
set_open_count: function() { set_open_count: function() {
if(!this.data.transactions) {
if(!this.data.transactions || !this.data.fieldname) {
return; return;
} }




読み込み中…
キャンセル
保存