mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-31 23:33:43 +00:00
fix(minor): fix dynamically changing grid properties
This commit is contained in:
@@ -10,7 +10,9 @@ frappe.ui.form.on('Service Level Agreement', {
|
||||
let statuses = frappe.meta.get_docfield('Issue', 'status', frm.doc.name).options;
|
||||
statuses = statuses.split('\n');
|
||||
allow_statuses = statuses.filter((status) => !exclude_statuses.includes(status));
|
||||
frappe.meta.get_docfield('Pause SLA On Status', 'status', frm.doc.name).options = [''].concat(allow_statuses);
|
||||
frm.fields_dict.pause_sla_on.grid.update_docfield_property(
|
||||
'status', 'options', [''].concat(allow_statuses)
|
||||
);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user