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>
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;
};