From: Galen Charlton Date: Tue, 7 Feb 2017 21:15:08 +0000 (-0500) Subject: webstaff: avoid showing 'null' as source label when displaying line item X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3454c1a4cbf7d4d69ac5783684266945fcbbc0a2;p=working%2FEvergreen.git webstaff: avoid showing 'null' as source label when displaying line item Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- 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();