Repaired non-slim org unit fetching bug
authorBill Erickson <berick@esilibrary.com>
Tue, 13 Mar 2012 16:15:33 +0000 (12:15 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 2 Apr 2012 17:39:01 +0000 (13:39 -0400)
Fixed an old thinko.  When fetching a full org unit object, set the
children org unit array value instead of clobbering the function.

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

index 8a1000c..87582d3 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 = fieldmapper.aou.OrgCache[o.id()].children;
+        o.children(slim_o.org.children());
         fieldmapper.aou.OrgCache[o.id()] = { loaded : true, org : o };
         return o;
     };