From: Jason Etheridge Date: Wed, 1 Jun 2011 07:17:17 +0000 (-0400) Subject: Fix Circulate as Type in the item editor. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=78e7d486a662069b06029c6ea7b6e681569f113d;p=evergreen%2Fbjwebb.git Fix Circulate as Type in the item editor. The citm retrieval method was changed to use open-ils.fielder, which doesn't return actual fieldmapper objects, so when data.js went to convert the retrieved list to a hash, it broke. Signed-off-by: Jason Etheridge Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js index 17a1ac943..6b4894df4 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js @@ -500,7 +500,8 @@ OpenILS.data.prototype = { if (obj.list[classname].constructor.name == 'Array') { obj.hash[classname] = util.functional.convert_object_list_to_hash( - obj.list[classname] + obj.list[classname], + classname == 'citm' ? 'code' : null ); } } catch(E) {