fix: default tab fieldname conflict
This commit is contained in:
parent
49b36cc54c
commit
c2b9197624
1 changed files with 2 additions and 1 deletions
|
|
@ -122,7 +122,8 @@ frappe.ui.form.Layout = class Layout {
|
|||
}
|
||||
|
||||
if (this.is_tabbed_layout()) {
|
||||
let default_tab = {label: __('Details'), fieldname: 'details', fieldtype: "Tab Break"};
|
||||
// add a tab without `fieldname` to avoid conflicts
|
||||
let default_tab = {label: __('Details'), fieldtype: "Tab Break"};
|
||||
let first_tab = this.fields[1].fieldtype === "Tab Break" ? this.fields[1] : null;
|
||||
if (!first_tab) {
|
||||
this.fields.splice(1, 0, default_tab);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue