formula: stringify incomming values

This commit is contained in:
jean-emmanuel 2017-01-24 18:52:05 +01:00
parent 7bcfada6da
commit c8110deeaa

View file

@ -74,7 +74,7 @@ module.exports = class Formula extends _widgets_base {
for (id of this.linkedWidgets) {
if (id !== undefined) {
formula = formula.replace('${' + id + '}', widgetManager.getWidgetById(id)[0].getValue())
formula = formula.replace('${' + id + '}', JSON.stringify(widgetManager.getWidgetById(id)[0].getValue()))
}
}