Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

swap key/value for select element options

  • Loading branch information...
commit d9eb27ac0edf07dc122e97eb610363f5d761e5bf 1 parent 82cab56
@matuszeman matuszeman authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Form/View/Helper/FormSelect.php
View
4 library/Zend/Form/View/Helper/FormSelect.php
@@ -134,8 +134,8 @@ public function renderOptions(array $options, array $selectedOptions = array())
if (is_scalar($optionSpec)) {
$optionSpec = array(
- 'label' => $key,
- 'value' => $optionSpec,
+ 'label' => $optionSpec,
+ 'value' => $key
);
}

0 comments on commit d9eb27a

Please sign in to comment.
Something went wrong with that request. Please try again.