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
-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

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

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
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
postedSep 12, '09 at 9:45a
activeSep 12, '09 at 9:45a

1 user in discussion

Michael: 1 post



site design / logo © 2022 Grokbase