dropDownList attribute 'name' not set?


if i generate a dropdownlist with

 <?php echo CHtml::dropDownList('ProjectId',0, $this->getProjects()); ?>

i got this in return

<select id="ProjectId">

<option value="-1"></option>



But like this, on submit the selected value will not be transmitted.

This does not occur by activeDropDownList.

I could fix it by adding following Line in CHtml after Line 433:

$htmlOptions['name']= $name;

then i got:

<select id="ProjectId" name="ProjectId">

and submiting works fine.

Greetings from Germany


Yeah, this was fixed in http://code.google.c…ce/detail?r=194