fix(list_view): better formatting for data field elements
This commit is contained in:
parent
af12ba99cf
commit
71ea6fa703
1 changed files with 2 additions and 0 deletions
|
|
@ -905,6 +905,8 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
aria-valuemin="0" aria-valuemax="100" style="width: ${Math.round(value)}%;">
|
||||
</div>
|
||||
</div>`;
|
||||
} else if (df.fieldtype === "Data") {
|
||||
return frappe.format(frappe.utils.escape_html(value), df, null, doc);
|
||||
} else {
|
||||
return frappe.format(value, df, null, doc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue