mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Fix for number variables in custom design
This commit is contained in:
parent
879e7d390d
commit
dad057d99d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -342,7 +342,7 @@ NINJA.decodeJavascript = function(invoice, javascript)
|
||||
field = toSnakeCase(field);
|
||||
|
||||
var value = getDescendantProp(invoice, field) || ' ';
|
||||
value = doubleDollarSign(value);
|
||||
value = doubleDollarSign(value) + '';
|
||||
value = value.replace(/\n/g, "\\n").replace(/\r/g, "\\r");
|
||||
javascript = javascript.replace(match, '"'+value+'"');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user