Better handling of undefined values in receipts
authorJeff Godin <jgodin@tadl.org>
Mon, 10 Oct 2011 20:18:49 +0000 (16:18 -0400)
committerJeff Godin <jgodin@tadl.org>
Mon, 10 Oct 2011 20:18:49 +0000 (16:18 -0400)
commit12a767ba2d05603219bcc59a40f4ad7fba277948
treee9a130b645ff15f814d9f31db3087c5ce396f890
parent4e6dcbfb6ea318afca3303c313c6d57615de93ff
Better handling of undefined values in receipts

Teach escape_html to return an empty string when given an
undefined value as input.

Previously: a macro being replaced with an undefined value
resulted in the macro itself remaining in the output.

Now: a macro being replaced with an undefined value will result
in an empty string in the output.
Open-ILS/xul/staff_client/chrome/content/util/print.js