diff --git a/components/ILIAS/UI/src/Implementation/Component/Input/Group.php b/components/ILIAS/UI/src/Implementation/Component/Input/Group.php index cf0af1b206e7..018f6f042df7 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Input/Group.php +++ b/components/ILIAS/UI/src/Implementation/Component/Input/Group.php @@ -60,7 +60,7 @@ public function getValue() */ public function withValue($value): self { - $this->checkArg("value", null === $value || $this->isClientSideValueOk($value), "Display value does not match input type."); + $this->checkArg("value", $this->isClientSideValueOk($value), "Display value does not match input type."); $clone = clone $this; foreach ($this->getInputs() as $k => $i) { // note isClientSideValueOk() verifies the structure, there @@ -132,6 +132,9 @@ protected function nameInputs(NameSource $source, string $parent_name): array */ protected function _isClientSideValueOk($value): bool { + if ($value === null) { + return true; + } if (!is_array($value)) { return false; }