Skip to content

Empty label doesnt work correctly for ObjectSelect #483

@cbichis

Description

@cbichis

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions