From 78e7d486a662069b06029c6ea7b6e681569f113d Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Wed, 1 Jun 2011 03:17:17 -0400 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 17a1ac943b..6b4894df4b 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) { -- 2.43.2