Dashticz / dashticz_v2

Alternative dashboard for Domoticz
107 stars 62 forks source link

fix for checkbox settings #328

Closed lokonli closed 6 years ago

lokonli commented 6 years ago

Several settings in config.js with value '0' were interpreted as text, meaning not 0. With other words: '0' was interpreted as true. This resulted in unexpected behavior.

With this fix all settings with type 'checkbox' will be interpreted correctly, with or without enclosing quotes.

This also addresses the issue described in #310. The 0-values still are written to file with single quotes, but they are interpreted correctly by dashticz.