From: gmc Date: Tue, 30 Nov 2010 00:11:22 +0000 (+0000) Subject: fix failure when attempting to create invoice X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a3949d86937045c199f022e65436ac5926d3dfdf;p=evergreen%2Fmasslnc.git fix failure when attempting to create invoice Occurred for line items that were not part of a selection list Signed-off-by: Galen Charlton git-svn-id: svn://svn.open-ils.org/ILS/trunk@18866 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/acq/Lineitem.js b/Open-ILS/web/js/dojo/openils/acq/Lineitem.js index 7c08653c1a..a52c6c7813 100644 --- a/Open-ILS/web/js/dojo/openils/acq/Lineitem.js +++ b/Open-ILS/web/js/dojo/openils/acq/Lineitem.js @@ -144,7 +144,7 @@ openils.acq.Lineitem.fetchAndRender = function(liId, args, callback) { var orderDate = ''; var liLink = ''; - if(pl.name() == '') // special pl + if(pl && pl.name() == '') // special pl pl = null; if(po) {