]> 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:54:36 +0000 (19:54 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 19 Jan 2011 19:54:36 +0000 (19:54 +0000)
commita5cb39a2869074b0cde7d5f658f5d943bcaf6dad
treecb21e381c02995ed82bc234f39917ea0a650d7fa
parenta5a04316c8e54d2115f455a13799a6e33ccb6798
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_1_6_1@19212 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/admin/org_unit_settings.js