Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed regression

  • Loading branch information...
commit 00ef8ed35a7caa0c5441b21e15f09177719ca162 1 parent 2c0a682
@lorenzo lorenzo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/View/Helper/FormHelper.php
View
2  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') {
Please sign in to comment.
Something went wrong with that request. Please try again.