[open-ils-commits] r17370 - branches/rel_1_6/Open-ILS/xul/staff_client/server/admin (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Aug 30 10:24:32 EDT 2010


Author: dbs
Date: 2010-08-30 10:24:30 -0400 (Mon, 30 Aug 2010)
New Revision: 17370

Modified:
   branches/rel_1_6/Open-ILS/xul/staff_client/server/admin/copy_locations.js
Log:
Backport r17369 from trunk: Display blank instead of 'undefined' for undefined label prefixes and suffixes


Modified: branches/rel_1_6/Open-ILS/xul/staff_client/server/admin/copy_locations.js
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/server/admin/copy_locations.js	2010-08-30 14:23:17 UTC (rev 17369)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/server/admin/copy_locations.js	2010-08-30 14:24:30 UTC (rev 17370)
@@ -160,8 +160,8 @@
     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 ); };



More information about the open-ils-commits mailing list