Bug #16601 [Opn->Dup]: Hierselect element options order broken in Google Chrome

From: Date: Sat, 12 Sep 2009 10:45:24 +0000
Subject: Bug #16601 [Opn->Dup]: Hierselect element options order broken in Google Chrome
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1605@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16601&edit=1 ID: 16601 Updated by: michael@stellarent.com Reported By: michael at stellarent dot com Summary: Hierselect element options order broken in Google Chrome -Status: Open +Status: Duplicate Type: Bug Package: HTML_QuickForm Operating System: Fedora Package Version: 3.2.11 PHP Version: Irrelevant Roadmap Versions: New Comment: -Status: Open +Status: Duplicate Duplicate as a result of bug 16604. Previous Comments: ------------------------------------------------------------------------ [2009-09-12 11:35:39] mpgjunky Description: ------------ The "child" select box options do not show in the order they were retrieved in, i.e. ascending. It's fine in Firefox and IE, but fails in Google Chrome. I suspect it's the Javascript function for swapping options but am not 100% certain. Test script: --------------- - Create Quickform with hierselect element. - Configure two arrays for the options, both sorted ascending. My options are retrieved from mysql table, e.g.: "SELECT * FROM usa_cities order by city asc" - View form in Chrome - Select a parent option - Click on the child select - all cities will be shown in unsorted order Expected result: ---------------- Child options to be shown in the exact order they were retrieved. Actual result: -------------- Child options shown in unsorted order. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16601&edit=1

« previous php.pear.bugs (#1605) next »