diff --git a/components/ILIAS/UI/src/Implementation/Component/Input/Field/Text.php b/components/ILIAS/UI/src/Implementation/Component/Input/Field/Text.php index 46c1e5a765a0..749e8dc3911e 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Input/Field/Text.php +++ b/components/ILIAS/UI/src/Implementation/Component/Input/Field/Text.php @@ -67,6 +67,11 @@ public function getMaxLength(): ?int return $this->max_length; } + public function withValue($value): self + { + return parent::withValue($value ?? ""); + } + /** * @inheritdoc */ diff --git a/components/ILIAS/UI/src/Implementation/Component/Input/Field/Textarea.php b/components/ILIAS/UI/src/Implementation/Component/Input/Field/Textarea.php index 9a9682c28352..2dbab9a14c46 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Input/Field/Textarea.php +++ b/components/ILIAS/UI/src/Implementation/Component/Input/Field/Textarea.php @@ -101,6 +101,11 @@ public function getMinLimit(): ?int return $this->min_limit; } + public function withValue($value): self + { + return parent::withValue($value ?? ""); + } + /** * @inheritdoc */