Merge pull request #37544 from krantheman/fix-dashboard-links-tests
This commit is contained in:
commit
f8d10dcb48
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue