Commit f5426027 authored by Ad Schellevis's avatar Ad Schellevis

mvc, oops, when sending 0 as boolean, we mean "0".... https://github.com/opnsense/core/issues/1442

parent 4cfead2d
......@@ -78,9 +78,9 @@ function getFormData(parent) {
} else if (sourceNode.prop("type") == "checkbox") {
// checkbox input type
if (sourceNode.prop("checked")) {
node[keypart] = 1 ;
node[keypart] = "1" ;
} else {
node[keypart] = 0 ;
node[keypart] = "0" ;
}
} else {
// regular input type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment