Merge pull request #38708 from KerollesFathy/fix-allow-clearing-link-fields

fix(link): Allow clearing link fields
This commit is contained in:
Ejaaz Khan 2026-04-18 23:44:47 +05:30 committed by GitHub
commit c6ae260f0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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