This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
When calling setValue Element\Select, selected incorrect values #18
Open
Description
When calling $select->setValue(array('1.1')), selected values French and Japanese,
but Japanese is incorrect value
use Zend\Form\Element;
use Zend\Form\Form;
$select = new Element\Select('language');
$select->setLabel('Which is your mother tongue?');
$select->setValueOptions(array(
'1.1' => 'French',
'1.2' => 'English',
'1.10' => 'Japanese',
'1.20' => 'Chinese',
));
$form = new Form('language');
$form->add($select);