[open-ils-commits] r18866 - trunk/Open-ILS/web/js/dojo/openils/acq (gmc)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Nov 29 19:11:22 EST 2010


Author: gmc
Date: 2010-11-29 19:11:22 -0500 (Mon, 29 Nov 2010)
New Revision: 18866

Modified:
   trunk/Open-ILS/web/js/dojo/openils/acq/Lineitem.js
Log:
fix failure when attempting to create invoice

Occurred for line items that were not part of a selection list

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

Modified: trunk/Open-ILS/web/js/dojo/openils/acq/Lineitem.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/acq/Lineitem.js	2010-11-29 22:54:30 UTC (rev 18865)
+++ trunk/Open-ILS/web/js/dojo/openils/acq/Lineitem.js	2010-11-30 00:11:22 UTC (rev 18866)
@@ -144,7 +144,7 @@
                 var orderDate = '';
                 var liLink = '';
 
-                if(pl.name() == '') // special pl
+                if(pl && pl.name() == '') // special pl
                     pl = null;
 
                 if(po) {



More information about the open-ils-commits mailing list