From c52f0c973f5e1e2eeeefdd0a07c33d6c69e31af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Fri, 16 Feb 2024 23:30:10 +0100 Subject: [PATCH] DEBUG radio --- src/Form/Control/Radio.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Form/Control/Radio.php b/src/Form/Control/Radio.php index d072566bde..b8bdf086af 100644 --- a/src/Form/Control/Radio.php +++ b/src/Form/Control/Radio.php @@ -46,6 +46,8 @@ protected function renderView(): void // $this->setSource($this->values); $this->setSource(array_map(static fn ($k, string $v) => ['k' => $k, 'name' => $v], array_keys($this->values), $this->values)); $this->model->idField = 'k'; + } else { + throw new \Error('x'); } $value = $this->entityField ? $this->entityField->get() : $this->content;