Issue with dropDownList in CActiveForm #1933

Closed
mikemix opened this Issue Jan 8, 2013 · 1 comment

Comments

Projects
None yet
3 participants

mikemix commented Jan 8, 2013

Setting "multiple" to "false" in options renders the field with spare brackets while it should only when multiple is set to true.

Using

echo $form->dropDownList($model, 'role', $model->getRoles(), array('multiple'=>false));

Returns output

<select id="User_role" name="User[role][]">
Contributor

adminnu commented Jan 11, 2013

This principle works in CHtml::activeDropDownList, CHtml::ListBox, CHtml::DropDownList

@ghost ghost assigned samdark Jan 11, 2013

adminnu added a commit to adminnu/yii that referenced this issue Jan 11, 2013

adminnu added a commit to adminnu/yii that referenced this issue Jan 19, 2013

adminnu added a commit to adminnu/yii that referenced this issue Jan 19, 2013

@samdark samdark closed this in d9a03d0 Apr 27, 2013

samdark added a commit that referenced this issue Apr 27, 2013

Merge pull request #1961 from adminnu/master
#1933: fixed using "multiple" parameter with a value of false in CHtml::activeDropDownList, CHtml::ListBox and CHtml::DropDownList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment