From: Bill Erickson Date: Tue, 13 Mar 2012 16:15:33 +0000 (-0400) Subject: Repaired non-slim org unit fetching bug X-Git-Tag: sprint4-merge-nov22~4309 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3f4ca6dd32b5ce2e36c91af836ee33cd5546fa1b;p=working%2FEvergreen.git 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 --- 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; };