Bug #16603 [Opn->Fbk]: Hierselect element options order broken in Google Chrome
| From: | borz_off at cs dot msu dot su | Date: | Sat, 12 Sep 2009 15:37:04 +0000 |
| Subject: | Bug #16603 [Opn->Fbk]: Hierselect element options order broken in Google Chrome | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1607@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16603&edit=1
ID: 16603
Updated by: borz_off@cs.msu.su
Reported By: michael at stellarent dot com
Summary: Hierselect element options order broken in Google
Chrome
-Status: Open
+Status: Feedback
Type: Bug
Package: HTML_QuickForm
Operating System: Fedora
Package Version: 3.2.11
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
-Status: Open
+Status: Feedback
Please provide a self-contained example that can actually be run. We
obviously don't have access to your 'usa_cities' mysql table. Thanks.
Previous Comments:
------------------------------------------------------------------------
[2009-09-12 11:36:22] 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=16603&edit=1