Fix: add error message

Fix: delete obsolete action
This commit is contained in:
Regis Houssin 2010-11-07 07:41:18 +00:00
parent dffd371ca4
commit a93e38d111

View File

@ -51,22 +51,6 @@ $result = restrictedArea($user, 'projet', $projectid);
* Actions
*/
if ($_POST["action"] == 'createtask' && $user->rights->projet->creer)
{
$task = new Task($db);
$task->fk_task_parent = $_POST["task_parent"]?$_POST["task_parent"]:0;
$task->label = $_POST["task_name"];
$result = $task->create($user);
if ($result == 0)
{
Header("Location:fiche.php?id=".$projectid);
exit;
}
}
if ($_POST["action"] == 'addtime' && $user->rights->projet->creer)
{
$task = new Task($db);
@ -101,7 +85,7 @@ if ($_POST["action"] == 'addtime' && $user->rights->projet->creer)
}
else
{
$mesg='<div class="error">'.$langs->trans("ErrorBadValue").'</div>';
$mesg='<div class="error">'.$langs->trans("ErrorTimeSpentIsEmpty").'</div>';
}
}