Merge pull request #37544 from krantheman/fix-dashboard-links-tests

This commit is contained in:
Suraj Shetty 2026-02-25 21:54:14 +05:30 committed by GitHub
commit f8d10dcb48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2050,6 +2050,9 @@ frappe.ui.form.Form = class FrappeForm {
if (df.fieldname === fieldname && isLinkToParent) {
new_doc[df.fieldname] = me.doc.name;
}
if (df.fieldtype === "Table" && df.options && df.reqd) {
me.set_link_field(df.options, new_doc[df.fieldname][0]);
}
return;
}