From d35868f0728b4581cbece12be26d6431b77424e1 Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 15 Apr 2009 15:09:23 +0000 Subject: [PATCH] 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 --- Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.11.0