Skip to content

Commit

Permalink
Fixed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Feb 27, 2014
1 parent 2c0a682 commit 00ef8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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') {
Expand Down

0 comments on commit 00ef8ed

Please sign in to comment.