From: miker Date: Wed, 15 Apr 2009 15:09:23 +0000 (+0000) Subject: protect the org trail from the top of the tree WITHOUT breaking everything... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d35868f0728b4581cbece12be26d6431b77424e1;p=evergreen%2Fmasslnc.git protect the org trail from the top of the tree WITHOUT breaking everything... git-svn-id: svn://svn.open-ils.org/ILS/trunk@12876 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js b/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js index caaa998bca..c201fabb26 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js +++ b/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js @@ -174,9 +174,10 @@ if(!dojo._hasResource["fieldmapper.OrgUtils"]){ while( node ) { na.push(node); - node = null; if (node.parent_ou()) node = fieldmapper.aou.findOrgUnit(node.parent_ou()); + else + node = null; } return na.reverse();