[open-ils-commits] r17145 - trunk/Open-ILS/xul/staff_client/server/cat (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Aug 9 17:05:30 EDT 2010


Author: dbs
Date: 2010-08-09 17:05:24 -0400 (Mon, 09 Aug 2010)
New Revision: 17145

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
Log:
Create the label_class object if null was returned from the method call


Modified: trunk/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js	2010-08-09 20:57:33 UTC (rev 17144)
+++ trunk/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js	2010-08-09 21:05:24 UTC (rev 17145)
@@ -50,8 +50,8 @@
         var label_class = fieldmapper.aou.fetchOrgSettingDefault(ses('ws_ou'), 'cat.default_classification_scheme');
 
         // Assign a default value if none was returned 
-        if (!label_class.value) {
-            label_class.value = 1;
+        if (!label_class) {
+            label_class = { "value": 1 };
         }
 
         /***********************************************************************************************************/



More information about the open-ils-commits mailing list