From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Mon, 9 Aug 2010 21:05:24 +0000 (+0000) Subject: Create the label_class object if null was returned from the method call X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b8822abcabe76e907a80809ad6f3cf7a401064f7;p=evergreen%2Fpines.git Create the label_class object if null was returned from the method call git-svn-id: svn://svn.open-ils.org/ILS/trunk@17145 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js index fd6bdd3100..da73c5b397 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js @@ -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 }; } /***********************************************************************************************************/