[open-ils-commits] r17369 - trunk/Open-ILS/xul/staff_client/server/admin (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Aug 30 10:23:19 EDT 2010


Author: dbs
Date: 2010-08-30 10:23:17 -0400 (Mon, 30 Aug 2010)
New Revision: 17369

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

When you saved an "undefined" prefix or suffix, that string would actually be stuffed
into the database, which is not optimal.


Modified: trunk/Open-ILS/xul/staff_client/server/admin/copy_locations.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/copy_locations.js	2010-08-30 14:14:12 UTC (rev 17368)
+++ trunk/Open-ILS/xul/staff_client/server/admin/copy_locations.js	2010-08-30 14:23:17 UTC (rev 17369)
@@ -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