From 3454c1a4cbf7d4d69ac5783684266945fcbbc0a2 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 7 Feb 2017 16:15:08 -0500 Subject: [PATCH] webstaff: avoid showing 'null' as source label when displaying line item Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index 879ba81a70..7c1c311df9 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -710,7 +710,8 @@ function AcqLiTable() { row.setAttribute('li', li.id()); var tds = dojo.query('[attr]', row); dojo.forEach(tds, function(td) {self.setRowAttr(td, liWrapper, td.getAttribute('attr'), td.getAttribute('attr_type'));}); - dojo.query('[name=source_label]', row)[0].appendChild(document.createTextNode(li.source_label())); + if (li.source_label() !== null) + dojo.query('[name=source_label]', row)[0].appendChild(document.createTextNode(li.source_label())); // so we can scroll to it later dojo.query('[name=bib-info-cell]', row)[0].id = 'li-title-ref-' + li.id(); -- 2.11.0