LP#1129318: fix exception thrown when printing circ receipts user/gmcharlt/lp1129318_fix_circ_printing
authorGalen Charlton <gmc@esilibrary.com>
Mon, 18 Feb 2013 17:44:50 +0000 (12:44 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 18 Feb 2013 17:44:50 +0000 (12:44 -0500)
commite1d96ba286ee8a9924aacf42f04a77a49a1b617a
tree5ab7f0dc1f685cf21d0bb73e8bbb66440f0c5b45
parent5a41bcf322e1874a28b7b2ca85dcfb5b9b62cc27
LP#1129318: fix exception thrown when printing circ receipts

Because of a misplaced parenthesis in the patch introducing the
PATRON_EXPIRE_DATE_YMD receipt macro, attempting to print
various circ receipts would result in the following exception:

Error in util.date.formatted_date:
location.href = oils://remote/xul/2.3_5/server/circ/checkin.xul
typeof orig_date = string orig_date = 2014-11-07T00:00:00-0500
typeof _date = object _date = Fri Nov 07 2014 00:00:00 GMT-0500 (Eastern Standard Time)
format = undefined
TypeError: s is undefined

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/xul/staff_client/chrome/content/util/print.js