]> 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:50:47 +0000 (19:50 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 19 Jan 2011 19:50:47 +0000 (19:50 +0000)
commit3f5322780d982a07e2d34137db7e4861a1fbcdb4
treed7012d6cbf76d7445fd6e4ef3cffa0d0ae6f733b
parent11216f36f63c9f8bee4b1d4c2425c9648e7588cb
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/trunk@19208 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/admin/org_unit_settings.js