diff --git a/htdocs/projet/activity/perday.php b/htdocs/projet/activity/perday.php
index 64ced5f3a5a..b767c35e329 100644
--- a/htdocs/projet/activity/perday.php
+++ b/htdocs/projet/activity/perday.php
@@ -493,7 +493,7 @@ if (count($tasksarray) > 0)
}
else
{
- print '
| '.$langs->trans("NoTasks").' |
';
+ print '| '.$langs->trans("NoTasks").' |
';
}
print "";
print '';
diff --git a/htdocs/projet/activity/perweek.php b/htdocs/projet/activity/perweek.php
index f7a1397f475..438d71cbdba 100644
--- a/htdocs/projet/activity/perweek.php
+++ b/htdocs/projet/activity/perweek.php
@@ -283,8 +283,17 @@ if ($action == 'addtime' && $user->rights->projet->lire)
{
setEventMessages($langs->trans("RecordSaved"), null, 'mesgs');
+ $param='';
+ $param.=($mode?'&mode='.$mode:'');
+ $param.=($projectid?'id='.$projectid:'').($search_usertoprocessid?'&search_usertoprocessid='.$search_usertoprocessid:'').($day?'&day='.$day:'').($month?'&month='.$month:'').($year?'&year='.$year:'');
+ $param.=($search_project_ref?'&search_project_ref='.$search_project_ref:'');
+ $param.=($search_usertoprocessid > 0?'&search_usertoprocessid='.$search_usertoprocessid:'');
+ $param.=($search_thirdparty?'&search_thirdparty='.$search_thirdparty:'');
+ $param.=($search_task_ref?'&search_task_ref='.$search_task_ref:'');
+ $param.=($search_task_label?'&search_task_label='.$search_task_label:'');
+
// Redirect to avoid submit twice on back
- header('Location: '.$_SERVER["PHP_SELF"].'?'.($projectid?'id='.$projectid:'').($search_usertoprocessid?'&search_usertoprocessid='.$search_usertoprocessid:'').($mode?'&mode='.$mode:'').($day?'&day='.$day:'').($month?'&month='.$month:'').($year?'&year='.$year:''));
+ header('Location: '.$_SERVER["PHP_SELF"].'?'.$param);
exit;
}
}
@@ -511,7 +520,7 @@ if (count($tasksarray) > 0)
}
else
{
- print '| '.$langs->trans("NoTasks").' |
';
+ print '| '.$langs->trans("NoTasks").' |
';
}
print "";
print '';