Navigation Menu

Skip to content
This repository has been archived by the owner on Dec 21, 2018. It is now read-only.

Commit

Permalink
Merged pull request #9
Browse files Browse the repository at this point in the history
  • Loading branch information
paulredmond committed Mar 6, 2013
2 parents dab2ca2 + c23289a commit 1599c3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion View/Helper/ChosenHelper.php
Expand Up @@ -121,7 +121,9 @@ public function select($name, $options = array(), $attributes = array())
$attributes['class'] .= " {$class}";
}

return $this->Form->select($name, $options, $attributes);
$attributes = array_merge($attributes, array('options' => $options, 'type' => 'select', 'div' => false, 'label' => false, 'empty' => true));

return $this->Form->input($name, $attributes);
}

public function afterRender($viewFile)
Expand Down

0 comments on commit 1599c3b

Please sign in to comment.