From: dbs Date: Mon, 30 Aug 2010 14:23:17 +0000 (+0000) Subject: Display blank instead of 'undefined' for undefined label prefixes and suffixes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=71e14c9380beee04e49a205ea2de6106c6a05374;p=evergreen%2Fpines.git 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. git-svn-id: svn://svn.open-ils.org/ILS/trunk@17369 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/admin/copy_locations.js b/Open-ILS/xul/staff_client/server/admin/copy_locations.js index 32d406e4d0..cd673cc712 100644 --- a/Open-ILS/xul/staff_client/server/admin/copy_locations.js +++ b/Open-ILS/xul/staff_client/server/admin/copy_locations.js @@ -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 ); };