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

Fix: back to project page

parent 7cc9a09f
No related branches found
No related tags found
No related merge requests found
...@@ -133,8 +133,7 @@ if ($action == 'createtask' && $user->rights->projet->creer) ...@@ -133,8 +133,7 @@ if ($action == 'createtask' && $user->rights->projet->creer)
} }
else else
{ {
setEventMessage($task->error,'errors'); setEventMessages($task->error,$task->errors,'errors');
setEventMessage($task->errors,'errors');
} }
} }
...@@ -150,6 +149,7 @@ if ($action == 'createtask' && $user->rights->projet->creer) ...@@ -150,6 +149,7 @@ if ($action == 'createtask' && $user->rights->projet->creer)
header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($mode)?'':'?mode='.$mode)); header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($mode)?'':'?mode='.$mode));
exit; exit;
} }
$id = $projectid;
} }
} }
else else
...@@ -168,9 +168,10 @@ if ($action == 'createtask' && $user->rights->projet->creer) ...@@ -168,9 +168,10 @@ if ($action == 'createtask' && $user->rights->projet->creer)
} }
} }
/* /*
* View * View
*/ */
$form=new Form($db); $form=new Form($db);
$formother=new FormOther($db); $formother=new FormOther($db);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment