Backport r17369 from trunk: Display blank instead of 'undefined' for undefined label...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 14:24:30 +0000 (14:24 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 14:24:30 +0000 (14:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@17370 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/admin/copy_locations.js

index 1ca934d..13dd38e 100644 (file)
@@ -160,8 +160,8 @@ function clBuildRow( tbody, row, cl ) {
     appendClear($n( row, 'cl_hold_verify'), (isTrue(cl.hold_verify())) ? _TRUE.cloneNode(true) : _FALSE.cloneNode(true) );
     appendClear($n( row, 'cl_visible'), (isTrue(cl.opac_visible())) ? _TRUE.cloneNode(true) : _FALSE.cloneNode(true) );
     appendClear($n( row, 'cl_circulate'), (isTrue(cl.circulate())) ? _TRUE.cloneNode(true) : _FALSE.cloneNode(true) );
-    $n( row, 'cl_label_prefix').appendChild(text(cl.label_prefix()));
-    $n( row, 'cl_label_suffix').appendChild(text(cl.label_suffix()));
+    $n( row, 'cl_label_prefix').appendChild(text(cl.label_prefix() || ''));
+    $n( row, 'cl_label_suffix').appendChild(text(cl.label_suffix() || ''));
 
     var edit = $n( row, 'cl_edit');
     edit.onclick = function() { clEdit( cl, tbody, row ); };