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

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Apr 27 08:46:52 EDT 2010


Author: erickson
Date: 2010-04-27 08:46:51 -0400 (Tue, 27 Apr 2010)
New Revision: 16318

Modified:
   trunk/Open-ILS/web/js/dojo/openils/acq/Lineitem.js
Log:
ensure order date is non-null before formatting

Modified: trunk/Open-ILS/web/js/dojo/openils/acq/Lineitem.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/acq/Lineitem.js	2010-04-26 21:42:45 UTC (rev 16317)
+++ trunk/Open-ILS/web/js/dojo/openils/acq/Lineitem.js	2010-04-27 12:46:51 UTC (rev 16318)
@@ -144,7 +144,9 @@
                 var orderDate = '';
                 if(po) {
                     var date = dojo.date.stamp.fromISOString(po.order_date());
-                    orderDate = dojo.date.locale.format(date, {selector:'date'});
+                    if(date) {
+                        orderDate = dojo.date.locale.format(date, {selector:'date'});
+                    }
                 }
 
                 var displayString = dojo.string.substitute(



More information about the open-ils-commits mailing list