fix(web_form): set only_select for Link fields in child table
This commit is contained in:
parent
835c882656
commit
aa5b526fa7
1 changed files with 5 additions and 0 deletions
|
|
@ -95,6 +95,11 @@ frappe.ready(function() {
|
|||
};
|
||||
|
||||
df.fields = form_data[df.fieldname];
|
||||
$.each(df.fields || [], function(_i, field) {
|
||||
if (field.fieldtype === "Link") {
|
||||
field.only_select = true;
|
||||
}
|
||||
});
|
||||
|
||||
if (df.fieldtype === "Attach") {
|
||||
df.is_private = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue