LP#1086458: convert last-print information hash to JSON string before caching
authorGalen Charlton <gmc@esilibrary.com>
Mon, 14 Oct 2013 15:23:23 +0000 (08:23 -0700)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 17 Oct 2013 18:20:34 +0000 (14:20 -0400)
commit6b0197821b61f9c6134bfdd732050149f9dcb5b7
treef82b30250f8a57de706fff4a4a5935e7635a456b
parentfbc23c07a9a215f61c48e8905327e2818b97f4e4
LP#1086458: convert last-print information hash to JSON string before caching

By serializing the printing message and context information to a
JSON string before caching it, we avoid inadvertantly dragging in
things like Javascript execution contexts and possibly references
to objects created by the checkout interface.  This was contributing
to the staff client memory leaks observed during receipt printing.

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