Some legacy data has NULL values (e.g. last_billing_note) where current
data has empty strings. This leads to exceptions and annoying, but
ultimately harmless error dialogs in the XUL client. Add some sanity
checking to the code to avoid that.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
} else {
/* for dump_with_keys */
for (var i in params.row) {
+
+ // some legacy data has NULL values where empty
+ // strings should be. This dies on .toString().
+ if (params.row[i] == null) params.row[i] = '';
+
switch(i) {
case "due_date":
var re = new RegExp('%'+i+'%',"g");