FIX Test on mandatory status when closing proposal failed

This commit is contained in:
Laurent Destailleur 2018-03-29 13:25:03 +02:00
parent b806b85761
commit 072b6c02c0

View File

@ -613,7 +613,7 @@ if (empty($reshook))
// Close proposal
else if ($action == 'setstatut' && $user->rights->propal->cloturer && ! GETPOST('cancel','alpha'))
{
if (! GETPOST('statut','int')) {
if (! (GETPOST('statut','int') > 0)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("CloseAs")), null, 'errors');
$action = 'statut';
} else {