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:
Mohammad Hussain Nagaria 2022-11-18 13:15:34 +05:30 committed by GitHub
parent 74bce62c62
commit dae4d57bed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}