From 706f1e86f0b9e4b5423b1b355bd30db422316068 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 13 Mar 2012 12:15:33 -0400 Subject: [PATCH] Repaired non-slim org unit fetching bug 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 Signed-off-by: Mike Rylander --- Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js b/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js index 8a1000c5ce..87582d3084 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js +++ b/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js @@ -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; }; -- 2.11.0