From b8822abcabe76e907a80809ad6f3cf7a401064f7 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 9 Aug 2010 21:05:24 +0000 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 fd6bdd310..da73c5b39 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 }; } /***********************************************************************************************************/ -- 2.11.0