fix: disable chart form condition (#11844)
This commit is contained in:
parent
cd9b806439
commit
6e931e6b2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue