Skip to content

Commit

Permalink
DEBUG radio
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Feb 16, 2024
1 parent 636bb5d commit c52f0c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Form/Control/Radio.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c52f0c9

Please sign in to comment.