瀏覽代碼

fix: disable chart form condition (#11844)

version-14
Prssanna Desai 4 年之前
committed by GitHub
父節點
當前提交
6e931e6b2a
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/desk/doctype/dashboard_chart/dashboard_chart.js

+ 1
- 1
frappe/desk/doctype/dashboard_chart/dashboard_chart.js 查看文件

@@ -23,7 +23,7 @@ frappe.ui.form.on('Dashboard Chart', {
frm.chart_filters = null; frm.chart_filters = null;
frm.is_disabled = !frappe.boot.developer_mode && frm.doc.is_standard; frm.is_disabled = !frappe.boot.developer_mode && frm.doc.is_standard;


if (!frm.is_disabled) {
if (frm.is_disabled) {
!frm.doc.custom_options && frm.set_df_property('chart_options_section', 'hidden', 1); !frm.doc.custom_options && frm.set_df_property('chart_options_section', 'hidden', 1);
frm.disable_form(); frm.disable_form();
} }


Loading…
取消
儲存