Browse Source

fix: disable chart form condition (#11844)

version-14
Prssanna Desai 4 years ago
committed by GitHub
parent
commit
6e931e6b2a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/desk/doctype/dashboard_chart/dashboard_chart.js

+ 1
- 1
frappe/desk/doctype/dashboard_chart/dashboard_chart.js View File

@@ -23,7 +23,7 @@ frappe.ui.form.on('Dashboard Chart', {
frm.chart_filters = null;
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.disable_form();
}


Loading…
Cancel
Save