fix(web_form): set only_select for Link fields in child table

This commit is contained in:
Rucha Mahabal 2020-06-09 20:11:38 +05:30
parent 835c882656
commit aa5b526fa7

View file

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