Bug submitting forms in FA 2.3.x when checkbox field not changed. Fixed
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 23 Dec 2016 07:56:18 +0000 (08:56 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 23 Dec 2016 07:56:18 +0000 (08:56 +0100)
includes/ui/ui_input.inc

index 400e3be0a66879985f0f22176011c357f40895f5..788767c403758e01601742583bbb96c1f812b38e 100644 (file)
@@ -334,7 +334,7 @@ function select_button_cell($name, $value, $title=false)
 
 function check_value($name)
 {
-       if (!isset($_POST[$name]))
+    if (!isset($_POST[$name]) || ($_POST[$name]+0) === 0)
                return 0;
        return 1;
 }