Skip to content

Commit

Permalink
Fix bug causing user searches from the user name in the header not to…
Browse files Browse the repository at this point in the history
… start from the current date, as they did in MRBS 1.11.0. See GitHub Issues #3514.
  • Loading branch information
campbell-m committed Sep 25, 2023
1 parent a39f427 commit 38a7906
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/Themes/default/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ function print_report_link(User $user)
elseif (checkAuthorised('search.php', true))
{
$attributes = array('action' => multisite('search.php'));
$hidden_inputs = array('search_str' => $user->username);
$date_now = new DateTime();
$hidden_inputs = array(
'search_str' => $user->username,
'from_date' => $date_now->getISODate()
);
}
else
{
Expand Down

0 comments on commit 38a7906

Please sign in to comment.