FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16602&edit=1

ID: 16602
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:36:12] 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.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 12, '09 at 9:46a
activeSep 12, '09 at 9:46a
posts1
users1
websitepear.php.net

1 user in discussion

Michael: 1 post

People

Translate

site design / logo © 2022 Grokbase