From: djfiander Date: Wed, 21 May 2008 17:31:05 +0000 (+0000) Subject: Minor fix to properly build lists of fund ids and names X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8409674c641812786fb0ca35372850558a4f27da;p=Evergreen.git Minor fix to properly build lists of fund ids and names git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@9656 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/acq/Fund.js b/Open-ILS/web/js/dojo/openils/acq/Fund.js index 4273e23997..60bb5807d9 100644 --- a/Open-ILS/web/js/dojo/openils/acq/Fund.js +++ b/Open-ILS/web/js/dojo/openils/acq/Fund.js @@ -148,8 +148,9 @@ openils.acq.Fund.nameMapping = function(oncomplete) { var names = []; var buildMap = function() { for (var i in openils.acq.Fund.cache) { - ids.push(i.id()); - names.push(i.name()); + var item = openils.acq.Fund.cache[i]; + ids.push(item.id()); + names.push(item.name()); oncomplete(ids, names); } };