]> git.evergreen-ils.org Git - Evergreen.git/commit
Build and flatten a tree, correcting a sorting issue in some OU dropdowns.
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 19 Jan 2011 19:52:12 +0000 (19:52 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 19 Jan 2011 19:52:12 +0000 (19:52 +0000)
commit75944ebf0ed4626d67a3bb421d25509506f66b00
tree4ccc057c37c2e67641275d213a4010c9b2d05eee
parent4d39dd908d6c7abd202cc48e7ae472b0700c32ca
Build and flatten a tree, correcting a sorting issue in some OU dropdowns.

The previous code assumed that work org units would be delivered in hierarchical order, but alas, they are not. Thus, we build the hierarchy and then flatten it, sorting at each level. This will be non-fast with many work OUs, but the common case is a small set, which is not painful.

Further improvement is warranted when the above proves false.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19209 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/admin/org_unit_settings.js