From: Joe Hunt Date: Fri, 23 Dec 2016 07:56:18 +0000 (+0100) Subject: Bug submitting forms in FA 2.3.x when checkbox field not changed. Fixed X-Git-Tag: 2.3-final~13 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=668186756afd2a079edf92b541e39385c2ac9d9f;hp=fff85845ae2899b1dbf4a39df94d3e6f27a4fa7e;p=fa-stable.git Bug submitting forms in FA 2.3.x when checkbox field not changed. Fixed --- diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 400e3be0..788767c4 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -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; }