revert: disable attach fields in unsaved child table rows (#31166)
* Revert "fix: move child table checks to within `set_input()`" This reverts commite08fb1cff2. * Revert "fix(attach): fix crash on web page builder" This reverts commitb0b0a4e36b. * Revert "fix: don't allow attaching a file to a child table in a new document" This reverts commit2fdc94840f.
This commit is contained in:
parent
b7aa8c4a11
commit
5e422640d9
1 changed files with 1 additions and 5 deletions
|
|
@ -119,11 +119,7 @@ frappe.ui.form.ControlAttach = class ControlAttach extends frappe.ui.form.Contro
|
|||
`);
|
||||
}
|
||||
} else {
|
||||
// Don't allow attaching to child tables for new documents
|
||||
if (this.doc?.__islocal && this.doc.parent) {
|
||||
this.$input.prop("disabled", true);
|
||||
this.$input.attr("title", __("Save to enable file upload"));
|
||||
}
|
||||
this.$input.toggle(true);
|
||||
this.$value.toggle(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue