turn nulls into empty strings when printing
authorJason Etheridge <jason@esilibrary.com>
Thu, 15 Dec 2011 15:28:33 +0000 (10:28 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 15 Dec 2011 16:04:04 +0000 (11:04 -0500)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/xul/staff_client/chrome/content/util/print.js

index ede2749..6ea3a54 100644 (file)
@@ -96,6 +96,7 @@ util.print.prototype = {
     },
 
     'escape_html' : function(data) {
+        if (typeof data == 'null') { return ''; }
         return data.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
     },