FIX bad check on type of expense report (mandatory status not working)

This commit is contained in:
Laurent Destailleur 2019-03-24 11:04:32 +01:00
parent 79ed4bc80b
commit b54b687464

View File

@ -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');