From a0206d554e55c9e0a86cb22d9bcb33c24114cf39 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 24 Mar 2019 11:04:32 +0100 Subject: [PATCH] FIX bad check on type of expense report (mandatory status not working) --- htdocs/expensereport/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index a40e2d2ed08..34f6486e417 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1120,7 +1120,7 @@ if (empty($reshook)) $qty = GETPOST('qty', 'int'); if (empty($qty)) $qty=1; - if (! $fk_c_type_fees > 0) + if (! ($fk_c_type_fees > 0)) { $error++; setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Type")), null, 'errors');