Skip to content

Commit

Permalink
Fix loose filter
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 9, 2017
1 parent 19de053 commit dce71d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htdocs/projet/activity/perday.php
Expand Up @@ -493,7 +493,7 @@
}
else
{
print '<tr><td colspan="13">'.$langs->trans("NoTasks").'</td></tr>';
print '<tr><td colspan="14">'.$langs->trans("NoTasks").'</td></tr>';
}
print "</table>";
print '</div>';
Expand Down
13 changes: 11 additions & 2 deletions htdocs/projet/activity/perweek.php
Expand Up @@ -283,8 +283,17 @@
{
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;
}
}
Expand Down Expand Up @@ -511,7 +520,7 @@
}
else
{
print '<tr><td colspan="15">'.$langs->trans("NoTasks").'</td></tr>';
print '<tr><td colspan="16">'.$langs->trans("NoTasks").'</td></tr>';
}
print "</table>";
print '</div>';
Expand Down

0 comments on commit dce71d6

Please sign in to comment.