fix: get_title must return string (#18926)
* which was not the case with autoincrement name rule * only apparent when you set the "Image Field" in form settings
This commit is contained in:
parent
74bce62c62
commit
dae4d57bed
1 changed files with 1 additions and 1 deletions
|
|
@ -1750,7 +1750,7 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
if (this.meta.title_field) {
|
||||
return this.doc[this.meta.title_field];
|
||||
} else {
|
||||
return this.doc.name;
|
||||
return String(this.doc.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue