From: Chris Sharp Date: Wed, 26 Sep 2012 17:13:37 +0000 (-0400) Subject: couple of corrections X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bd58f0a647907511e2dcbc7129bd76c706b260a2;p=evergreen%2Fpines.git couple of corrections --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/print.js b/Open-ILS/xul/staff_client/chrome/content/util/print.js index 86f70fc4ae..aaa7120d20 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/print.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/print.js @@ -283,7 +283,7 @@ util.print.prototype = { catch(E){s = b; this.error.sdump('D_WARN','string = <' + s + '> error = ' + js2JSON(E)+'\n');} try{b = s; s = s.replace(/%PATRON_EXPIRE_DATE%/g,this.escape_html(params.patron.expire_date()));} catch(E){s = b; this.error.sdump('D_WARN','string = <' + s + '> error = ' + js2JSON(E)+'\n');} - try{b = s; s = s.replace(/%PATRON_EXPIRE_DATE_YMD%/g,util.date.formatted_date(new Date(this.escape_html(params.patron.expire_date())), '%Y-%M-%d'));} + try{b = s; s = s.replace(/%PATRON_EXPIRE_DATE_YMD%/g,util.date.formatted_date(this.escape_html(params.patron.expire_date()), '%Y-%m-%d'));} catch(E){s = b; this.error.sdump('D_WARN','string = <' + s + '> error = ' + js2JSON(E)+'\n');} try{b = s; s=s.replace(/%TODAY%/g,(new Date()));}