Skip to content

Commit

Permalink
Do not submit empty value on non-submitted data
Browse files Browse the repository at this point in the history
  • Loading branch information
ElGigi committed Sep 25, 2023
1 parent d12a96f commit 29d46fe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,6 @@ public function submitValue(mixed $value): void
/** @var ElementInterface $element */
foreach ($this as $element) {
if (!array_key_exists($element->getName(), $value)) {
if ($element instanceof TraversableElementInterface) {
$element->submitValue([]);
continue;
}

$element->submitValue(null);
continue;
}

Expand Down

0 comments on commit 29d46fe

Please sign in to comment.