fix: escape multiselect as well
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
1068b3cb96
commit
45d1dd3224
1 changed files with 5 additions and 1 deletions
|
|
@ -155,7 +155,11 @@ frappe.ui.form.ControlInput = class ControlInput extends frappe.ui.form.Control
|
|||
} else {
|
||||
value = this.value || value;
|
||||
}
|
||||
if (["Data", "Long Text", "Small Text", "Text", "Password"].includes(this.df.fieldtype)) {
|
||||
if (
|
||||
["Data", "Long Text", "Small Text", "Text", "Password", "MultiSelect"].includes(
|
||||
this.df.fieldtype
|
||||
)
|
||||
) {
|
||||
value = frappe.utils.escape_html(value);
|
||||
}
|
||||
let doc = this.doc || (this.frm && this.frm.doc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue