From d2615c097a1ab4b9b55133c2d5bee2111f868d3a Mon Sep 17 00:00:00 2001 From: iszmais Date: Fri, 7 Aug 2026 13:02:41 +0200 Subject: [PATCH] fix null value input-handling for group in group --- .../ILIAS/UI/src/Implementation/Component/Input/Group.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }