Skip to content
Snippets Groups Projects
Commit d48ac6f5 authored by Samuli Sillanpää's avatar Samuli Sillanpää Committed by Robert Lange
Browse files

Bug fix: display radio labels correctly.

parent da7d3b8d
No related merge requests found
...@@ -381,8 +381,8 @@ class Form extends \Zend\Form\Form implements ...@@ -381,8 +381,8 @@ class Form extends \Zend\Form\Form implements
$first = true; $first = true;
foreach ($options as $key => $val) { foreach ($options as $key => $val) {
$optionElements[] = [ $optionElements[] = [
'label' => $key, 'label' => $val,
'value' => $val, 'value' => $key,
'label_attributes' => ['for' => $val], 'label_attributes' => ['for' => $val],
'attributes' => ['id' => $val], 'attributes' => ['id' => $val],
'selected' => $first 'selected' => $first
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment