zendframework / zend-form

Form component from Zend Framework
BSD 3-Clause "New" or "Revised" License
69 stars 87 forks source link

Fix rendering select element when value is an object #218

Closed Erikvv closed 5 years ago

Erikvv commented 6 years ago

Use a select element with object as values (identifiers). The select element I believe is the only element which exhibits this behavior

The select element works when submitting, but it will not render a selected option as selected.

Select element works the same as using string values, relying on __toString()

weierophinney commented 5 years ago

Thanks, @Erikvv!