Commit f43c6053 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

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

(cherry picked from commit f5426027)
parent c1b48696
...@@ -78,9 +78,9 @@ function getFormData(parent) { ...@@ -78,9 +78,9 @@ function getFormData(parent) {
} else if (sourceNode.prop("type") == "checkbox") { } else if (sourceNode.prop("type") == "checkbox") {
// checkbox input type // checkbox input type
if (sourceNode.prop("checked")) { if (sourceNode.prop("checked")) {
node[keypart] = 1 ; node[keypart] = "1" ;
} else { } else {
node[keypart] = 0 ; node[keypart] = "0" ;
} }
} else { } else {
// regular input type // 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