protect the org trail from the top of the tree WITHOUT breaking everything...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Apr 2009 15:09:23 +0000 (15:09 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Apr 2009 15:09:23 +0000 (15:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12876 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js

index caaa998..c201fab 100644 (file)
@@ -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();