Fix Circulate as Type in the item editor.
authorJason Etheridge <jason@esilibrary.com>
Wed, 1 Jun 2011 07:17:17 +0000 (03:17 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 6 Jun 2011 16:09:36 +0000 (12:09 -0400)
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 <jason@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js

index 17a1ac9..6b4894d 100644 (file)
@@ -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) {