Skip to content

Commit

Permalink
FIX Test on mandatory status when closing proposal failed
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 29, 2018
1 parent b806b85 commit 072b6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/comm/propal/card.php
Expand Up @@ -613,7 +613,7 @@
// 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 {
Expand Down

0 comments on commit 072b6c0

Please sign in to comment.