doctrine / doctrine/DoctrineModule
Empty label doesnt work correctly for ObjectSelect
Open
Bug
- Dominant language
- PHP
- Stars
- 392
- Forks
- 263
- PR merge metrics
- No merged PRs in 30d
Description
On Form\Element\Proxy.php
```
if ($this->displayEmptyItem) {
$options[''] = $this->getEmptyItemLabel();
}
```
Should be changed to:
$options[] = array('label' => $this->getEmptyItemLabel(), 'value' => '');
Otherwise the emptyLabel wont be displayed properly and rater a NULL is inserted as item...
Contributor guide
Assessment
This issue has not been assessed yet.