fix: use correct sysdefault key for link field clear button

This commit is contained in:
Kaushal Shriwas 2026-04-14 16:52:19 +05:30
parent 5a8156aaee
commit 8cfa6a2c95

View file

@ -82,7 +82,7 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat
}
is_clear_button_enabled() {
return cint(frappe.boot?.sysdefaults?.show_clear_button_in_link_field);
return cint(frappe.boot?.sysdefaults?.allow_clearing_link_fields);
}
hide_link_and_clear_buttons() {