Skip to content
Snippets Groups Projects
Commit 12d5b90b authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Statut to close a proposal is required.

parent 140de8ef
No related branches found
No related tags found
No related merge requests found
...@@ -292,6 +292,14 @@ if ($_POST['action'] == 'add' && $user->rights->propale->creer) ...@@ -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) ...@@ -302,6 +310,7 @@ if ($_REQUEST['action'] == 'setstatut' && $user->rights->propale->cloturer)
} }
} }
} }
}
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment