fix failure when attempting to create invoice
authorgmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Nov 2010 00:11:22 +0000 (00:11 +0000)
committergmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Nov 2010 00:11:22 +0000 (00:11 +0000)
Occurred for line items that were not part of a selection list

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18866 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/acq/Lineitem.js

index 7c08653..a52c6c7 100644 (file)
@@ -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) {