From d8884e6d593b177e8f0938a887561582a0a522eb Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 15 Dec 2011 10:28:33 -0500 Subject: [PATCH] turn nulls into empty strings when printing Signed-off-by: Jason Etheridge Signed-off-by: Chris Sharp --- Open-ILS/xul/staff_client/chrome/content/util/print.js | 1 + 1 file changed, 1 insertion(+) 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 ede2749235..6ea3a54848 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/print.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/print.js @@ -96,6 +96,7 @@ util.print.prototype = { }, 'escape_html' : function(data) { + if (typeof data == 'null') { return ''; } return data.replace(/&/g,'&').replace(//g,'>'); }, -- 2.11.0