Skip to content

Commit

Permalink
v2-Beta9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kid1194 committed Feb 20, 2023
1 parent 89e9eef commit ec86498
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions frappe_better_attach_control/public/js/controls/attach.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,32 +267,6 @@ frappe.ui.form.ControlAttach = class ControlAttach extends frappe.ui.form.Contro
if (v.length) v = v[0] === '/' ? new RegExp(v) : v;
else v = null;
}
else if (t[0] === 'o' && v) {
t = t.split(' ');
let l = t.length;
if ((l === 2 || l === 3) && isPlainObject(v)) {
let d = {};
each(v, function(y, z) {
z = l === 2 ? z : parseVal(z, t[1]);
y = parseVal(z, t[l - 1]);
if (z != null && y != null) d[z] = y;
});
v = !isEmpty(d) ? d : null;
}
else v = null;
}
else if (t[0] === 'a' && v) {
t = t.split(' ');
if (t.length === 2 && isArray(v)) {
let d = [];
each(v, function(y) {
y = parseVal(z, t[1]);
if (y != null) d.push(y);
});
v = !isEmpty(d) ? d : null;
}
else v = null;
}
return v;
}
each([['upload_notes', 's'], ['allow_multiple', 'b']], function(k) {
Expand Down

0 comments on commit ec86498

Please sign in to comment.