diff --git a/htdocs/projet/activity/perday.php b/htdocs/projet/activity/perday.php
index 3dbf7e32650..9f5a69941b1 100644
--- a/htdocs/projet/activity/perday.php
+++ b/htdocs/projet/activity/perday.php
@@ -107,7 +107,7 @@ if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x',
{
$action = '';
$search_categ='';
- $search_usertoprocessid = '';
+ $search_usertoprocessid = $user->id;
$search_task_ref = '';
$search_task_label = '';
$search_project_ref = '';
@@ -506,7 +506,7 @@ print '';
print '';
diff --git a/htdocs/projet/activity/perweek.php b/htdocs/projet/activity/perweek.php
index 3b6ce8efd91..e91d5572c99 100644
--- a/htdocs/projet/activity/perweek.php
+++ b/htdocs/projet/activity/perweek.php
@@ -120,7 +120,7 @@ if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x',
{
$action = '';
$search_categ='';
- $search_usertoprocessid = '';
+ $search_usertoprocessid = $user->id;
$search_task_ref = '';
$search_task_label = '';
$search_project_ref = '';
@@ -528,7 +528,7 @@ $modeinput='hours';
print '