You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.
$form->addElement(new PFBC\Element\Select("Test:", "test[]", array('1'=>'one','2'=>'two','3'=>'three'),
array('value'=>array(1,2),
'multiple'=>'true'
)));
What is the expected output?
A multi select box with 3 values, where 2 are pre-selected
What do you see instead?
A multi-select box with 3 values, where only 1 is pre-selected
What version of the product are you using? On what operating system?
Version 3.1
PHP 5.3+
Please provide any additional information below.
The problem appears to be in the file:
https://code.google.com/p/php-form-builder-class/source/browse/trunk/PFBC/Element/Select.php
Lines 23-26
Once select is set the first time, the IF test fails for all future values even if in_array(..) is true.
Commenting out the set value on line 25 is a hack solution that fixes the issue.
Original issue reported on code.google.com by docon...@gmail.com on 13 Aug 2013 at 11:53
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
docon...@gmail.com
on 13 Aug 2013 at 11:53The text was updated successfully, but these errors were encountered: