Fix: Statut to close a proposal is required.

This commit is contained in:
Laurent Destailleur 2008-09-08 23:48:01 +00:00
parent 140de8ef45
commit 12d5b90b6c

View File

@ -292,6 +292,14 @@ if ($_POST['action'] == 'add' && $user->rights->propale->creer)
if ($_REQUEST['action'] == 'setstatut' && $user->rights->propale->cloturer) if ($_REQUEST['action'] == 'setstatut' && $user->rights->propale->cloturer)
{ {
if (! $_POST['cancel']) if (! $_POST['cancel'])
{
if (empty($_REQUEST['statut']))
{
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentities("CloseAs")).'</div>';
$_REQUEST['action']='statut';
$_GET['action']='statut';
}
else
{ {
$propal = new Propal($db); $propal = new Propal($db);
$propal->fetch($_GET['propalid']); $propal->fetch($_GET['propalid']);
@ -302,6 +310,7 @@ if ($_REQUEST['action'] == 'setstatut' && $user->rights->propale->cloturer)
} }
} }
} }
}
/* /*