From: Joe Hunt Date: Fri, 23 Dec 2016 07:57:23 +0000 (+0100) Subject: Bug submitting forms in FA 2.4.x when checkbox field not changed. Fixed X-Git-Tag: v2.4.2~19^2~27 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=dc449868579dadd4fb918b6a9a7b10ba175d388b Bug submitting forms in FA 2.4.x when checkbox field not changed. Fixed --- diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index b15ba10e..2a4d75fd 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -347,7 +347,7 @@ function select_button_cell($name, $value, $title=false) function check_value($name) { - if (!isset($_POST[$name]) || $_POST[$name]=='') + if (!isset($_POST[$name]) || ($_POST[$name]+0) === 0) return 0; return 1; }