Skip to content

Commit 7761b81

Browse files
author
Timm Ortloff
committed
Ensure that always one group is present when deleting
1 parent 4076878 commit 7761b81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormElement/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function assemble()
6464
}
6565

6666
foreach ($this->value ?? [[]] as $key => $items) {
67-
if (isset($items[$this->removeTrigger['name']])) {
67+
if (isset($items[$this->removeTrigger['name']]) && count($this->value) > 1) {
6868
continue;
6969
}
7070

0 commit comments

Comments
 (0)