diff --git a/frappe/website/doctype/website_settings/website_settings.js b/frappe/website/doctype/website_settings/website_settings.js index 347788b83c..422deb244e 100644 --- a/frappe/website/doctype/website_settings/website_settings.js +++ b/frappe/website/doctype/website_settings/website_settings.js @@ -30,7 +30,9 @@ frappe.ui.form.on('Website Settings', { }, set_parent_label_options: function(frm) { - frm.fields_dict.top_bar_items.grid.update_docfield_property('parent_label', 'options', frm.events.get_parent_options(frm, "top_bar_items")); + frm.fields_dict.top_bar_items.grid.update_docfield_property( + 'parent_label', 'options', frm.events.get_parent_options(frm, "top_bar_items") + ); if ($(frm.fields_dict.top_bar_items.grid.wrapper).find(".grid-row-open")) { frm.fields_dict.top_bar_items.grid.refresh(); @@ -38,7 +40,9 @@ frappe.ui.form.on('Website Settings', { }, set_parent_label_options_footer: function(frm) { - frm.fields_dict.footer_items.grid.update_docfield_property('parent_label', 'options', frm.events.get_parent_options(frm, "top_bar_items")); + frm.fields_dict.footer_items.grid.update_docfield_property( + 'parent_label', 'options', frm.events.get_parent_options(frm, "top_bar_items") + ); if ($(frm.fields_dict.footer_items.grid.wrapper).find(".grid-row-open")) { frm.fields_dict.footer_items.grid.refresh(); diff --git a/frappe/workflow/doctype/workflow/workflow.js b/frappe/workflow/doctype/workflow/workflow.js index e7f78c06cb..8441951ec6 100644 --- a/frappe/workflow/doctype/workflow/workflow.js +++ b/frappe/workflow/doctype/workflow/workflow.js @@ -45,7 +45,7 @@ frappe.ui.form.on("Workflow", { frappe.xcall(get_field_method, { doctype: doc.document_type }) .then(resp => { frm.fields_dict.states.grid.update_docfield_property( - 'update_field', options, [""].concat(resp) + 'update_field', 'options', [""].concat(resp) ); }) }