formula: support implicit multiplication of ${id} statements

This commit is contained in:
jean-emmanuel 2017-01-24 21:30:41 +01:00
parent 540beabdc2
commit 8e08ff5399

View file

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