Revert "Repaired non-slim org unit fetching bug"
authorBill Erickson <berick@esilibrary.com>
Mon, 2 Apr 2012 17:18:17 +0000 (13:18 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 2 Apr 2012 17:23:11 +0000 (13:23 -0400)
This reverts commit 706f1e86f0b9e4b5423b1b355bd30db422316068.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js

index 87582d3..8a1000c 100644 (file)
@@ -56,7 +56,7 @@ if(!dojo._hasResource["fieldmapper.OrgUtils"]){
         if(!(o && o.id)) {
             throw new Error("fieldmapper.aou.LoadOrg(): No org unit found with ID " + id);
         }
-        o.children(slim_o.org.children());
+        o.children = fieldmapper.aou.OrgCache[o.id()].children;
         fieldmapper.aou.OrgCache[o.id()] = { loaded : true, org : o };
         return o;
     };