This fixes pop-up errors when viewing the bill_payment template in rel_2_1.
We're trying to call .replace on a number instead of a string with the sample
data provided. I think this should be forward-ported to master as defensive
code.
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
'escape_html' : function(data) {
if (typeof data == 'object') { return ''; }
- return data.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
+ return String(data).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
},
'simple' : function(msg,params) {