Skip to content

Commit

Permalink
Merge pull request #73 from stealthinu/fix_restructureLabel
Browse files Browse the repository at this point in the history
fix _restructureLabel removed inner <label for="..."> tags
  • Loading branch information
slywalker committed Sep 2, 2013
2 parents 1a52a41 + d2768e7 commit b95e997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion View/Helper/BootstrapFormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function select($fieldName, $options = array(), $attributes = array()) {
protected function _restructureLabel($out, $options = array()) {
$out = explode("\n", $out);
foreach ($out as $key => &$_out) {
$input = strip_tags($_out, '<input><img>');
$input = strip_tags($_out, '<input><img><label>');
if ($input) {
$_out = $this->Html->tag('label', $input, $options);
}
Expand Down

0 comments on commit b95e997

Please sign in to comment.