Merge pull request #12088 from hrwX/patch-1

fix: strip html before checking for null values
This commit is contained in:
mergify[bot] 2020-12-21 10:49:59 +00:00 committed by GitHub
commit ee3c4943bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ frappe.ui.FieldGroup = frappe.ui.form.Layout.extend({
var f = this.fields_dict[key];
if (f.get_value) {
var v = f.get_value();
if (f.df.reqd && is_null(v))
if (f.df.reqd && is_null(strip_html(v)))
errors.push(__(f.df.label));
if (f.df.reqd