Skip to content

Commit ea4144c

Browse files
committed
Merge pull request #76 from mvdriel/master
Fixed input generation for CakePHP 2.4
2 parents 7a2a953 + db1a11d commit ea4144c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

View/Helper/BootstrapFormHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function uneditable($fieldName, $options = array(), $before = false) {
3535
}
3636
return $options;
3737
} else {
38-
return $this->Html->tag('span', $options['value'], $options['class']);
38+
return $this->Html->tag('span', $options['value'], $options);
3939
}
4040
}
4141

@@ -247,7 +247,7 @@ public function input($fieldName, $options = array()) {
247247
$input = $hidden . ((false === $div) ? $input : $this->Html->div($divControls, $input));
248248

249249
$out = $before . $label . $between . $input;
250-
return (false === $div) ? $out : $this->Html->tag('div', $out, $div);
250+
return (false === $div) ? $out : $this->Html->tag('div', $out, array('class' => $div));
251251
}
252252

253253
protected function _getType($fieldName, $options) {

0 commit comments

Comments
 (0)