Permalink
Browse files

Fixed regression

  • Loading branch information...
1 parent 2c0a682 commit 00ef8ed35a7caa0c5441b21e15f09177719ca162 @lorenzo lorenzo committed Feb 27, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/View/Helper/FormHelper.php
@@ -848,7 +848,6 @@ public function input($fieldName, $options = []) {
$this->templates($options['templates']);
unset($options['templates']);
- $input = $this->_getInput($fieldName, $options);
$label = $this->_getLabel($fieldName, $options);
if ($options['type'] !== 'radio') {
@@ -864,6 +863,7 @@ public function input($fieldName, $options = []) {
}
$groupTemplate = $options['type'] === 'checkbox' ? 'checkboxFormGroup' : 'formGroup';
+ $input = $this->_getInput($fieldName, $options);
$result = $this->formatTemplate($groupTemplate, compact('input', 'label'));
if ($options['type'] !== 'hidden') {

0 comments on commit 00ef8ed

Please sign in to comment.