]> 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:05 +0000 (19:54 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 19 Jan 2011 19:54:05 +0000 (19:54 +0000)
commitaa412be1834dcdcaae1151d44571af862fec1d1e
treed172ae0df2b5447b5bd798536c8733a6d47974f3
parent720c1f773d44bc77993ffa771f0b128cea610f75
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_2@19211 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/admin/org_unit_settings.js