From b54b6874640e61396cb979aa4c4a7322201022dc 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 ddd1f7cd306..e9fb3dd1b43 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1103,7 +1103,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');