瀏覽代碼

Merge pull request #4029 from codingCoffee/develop

fix for reverse linking (for dashboard) without filter
version-14
Rushabh Mehta 7 年之前
committed by GitHub
父節點
當前提交
fb0c701407
共有 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 {
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…
取消
儲存