Internal browser always chooses last option overwriting selected options

boombatower - April 9, 2008 - 22:44
Project:SimpleTest
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:boombatower
Status:closed
Description

After a few tests had issues with the internal browser and select inputs I decided to investigate. After talking with chx in IRC we found that the issue lies with a single character being inserted.

The original code:

<?php
if ($option['selected'] || (!$first && $single)) {
?>

corrected:
<?php
if ($option['selected'] || ($first && $single)) {
?>

The appears to fix several issues.

#1

chx - April 10, 2008 - 00:10
Title:Internal browser doesn't select first option and ignores selected options» Internal browser always chooses last option overwriting selected options

#2

Anonymous (not verified) - April 24, 2008 - 00:16
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.