From 71e14c9380beee04e49a205ea2de6106c6a05374 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 30 Aug 2010 14:23:17 +0000 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/server/admin/copy_locations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 32d406e4d..cd673cc71 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 ); }; -- 2.11.0