From: erickson Date: Tue, 27 Apr 2010 12:46:51 +0000 (+0000) Subject: ensure order date is non-null before formatting X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f7953366e6f9d5b84b3c64474c474c7864e90c1d;p=evergreen%2Fpines.git ensure order date is non-null before formatting git-svn-id: svn://svn.open-ils.org/ILS/trunk@16318 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 4bff2e9eb4..3d9e674579 100644 --- a/Open-ILS/web/js/dojo/openils/acq/Lineitem.js +++ b/Open-ILS/web/js/dojo/openils/acq/Lineitem.js @@ -144,7 +144,9 @@ openils.acq.Lineitem.fetchAndRender = function(liId, args, callback) { 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(