From a93e38d11131aadd054c8e2cdd6d1fe9f8391a98 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 7 Nov 2010 07:41:18 +0000 Subject: [PATCH] Fix: add error message Fix: delete obsolete action --- htdocs/projet/activity/list.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/htdocs/projet/activity/list.php b/htdocs/projet/activity/list.php index f785a3225c2..163aea42664 100644 --- a/htdocs/projet/activity/list.php +++ b/htdocs/projet/activity/list.php @@ -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='
'.$langs->trans("ErrorBadValue").'
'; + $mesg='
'.$langs->trans("ErrorTimeSpentIsEmpty").'
'; } }