fix: dont apply varchar length validation on singles (#19872)
closes https://github.com/frappe/frappe/issues/19833 [skip ci]
This commit is contained in:
parent
4ca23dd5fa
commit
9d97097c12
1 changed files with 4 additions and 0 deletions
|
|
@ -220,6 +220,10 @@ frappe.ui.form.ControlData = class ControlData extends frappe.ui.form.ControlInp
|
|||
this.df.fieldtype
|
||||
)
|
||||
) {
|
||||
if (this.frm?.meta?.issingle) {
|
||||
// singles dont have any "real" length requirements
|
||||
return;
|
||||
}
|
||||
this.$input.attr("maxlength", this.df.length || 140);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue