Merge pull request #35846 from frappe/form-indicators

fix: form indicators
This commit is contained in:
Ejaaz Khan 2026-01-12 14:34:16 +05:30 committed by GitHub
commit 080d28b5b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -433,7 +433,9 @@ frappe.format = function (value, df, options, doc) {
df._options = doc ? doc[df.options] : null;
}
var formatter = df.formatter || frappe.form.get_formatter(fieldtype);
var formatter =
frappe.meta.get_docfield(doc?.doctype, df.fieldname)?.formatter ||
frappe.form.get_formatter(fieldtype);
var formatted = formatter(value, df, options, doc);