Create the label_class object if null was returned from the method call
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Aug 2010 21:05:24 +0000 (21:05 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Aug 2010 21:05:24 +0000 (21:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17145 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js

index fd6bdd3..da73c5b 100644 (file)
@@ -50,8 +50,8 @@ function my_init() {
         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 };
         }
 
         /***********************************************************************************************************/