Skip to content

Commit e7691de

Browse files
committed
Fix second save nested layout agentejo#1485
1 parent f7cd602 commit e7691de

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

modules/Cockpit/assets/components/field-layout.tag

+9
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,17 @@
468468
remove(e) {
469469
this.items.splice(e.item.idx, 1);
470470

471+
function checkParent(child) {
472+
if (!child.parent) {
473+
child.update();
474+
} else {
475+
checkParent(child.parent);
476+
}
477+
}
478+
471479
if (opts.child) {
472480
this.parent.update()
481+
checkParent(this);
473482
}
474483
}
475484

modules/Collections/views/entry.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336

337337
App.ui.notify("Saving successful", "success");
338338

339-
_.extend($this.entry, entry);
339+
_.extend(entry, $this.entry);
340340

341341
$this.fields.forEach(function(field){
342342

0 commit comments

Comments
 (0)