From: Jason Etheridge Date: Thu, 15 Dec 2011 15:28:33 +0000 (-0500) Subject: turn nulls into empty strings when printing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d8884e6d593b177e8f0938a887561582a0a522eb;p=evergreen%2Fpines.git turn nulls into empty strings when printing Signed-off-by: Jason Etheridge Signed-off-by: Chris Sharp --- 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,'>'); },