Skip to content

Commit

Permalink
MDL-63480 reports: Fix name filters in completion reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihail Geshoski committed Jan 21, 2019
1 parent c092f75 commit bed5439
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions report/completion/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@
$where_params = array();

if ($sifirst !== 'all') {
$where[] = $DB->sql_like('u.firstname', ':sifirst', false);
$where[] = $DB->sql_like('u.firstname', ':sifirst', false, false);
$where_params['sifirst'] = $sifirst.'%';
}

if ($silast !== 'all') {
$where[] = $DB->sql_like('u.lastname', ':silast', false);
$where[] = $DB->sql_like('u.lastname', ':silast', false, false);
$where_params['silast'] = $silast.'%';
}

Expand Down
4 changes: 2 additions & 2 deletions report/progress/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ function csv_quote($value) {
$where_params = array();

if ($sifirst !== 'all') {
$where[] = $DB->sql_like('u.firstname', ':sifirst', false);
$where[] = $DB->sql_like('u.firstname', ':sifirst', false, false);
$where_params['sifirst'] = $sifirst.'%';
}

if ($silast !== 'all') {
$where[] = $DB->sql_like('u.lastname', ':silast', false);
$where[] = $DB->sql_like('u.lastname', ':silast', false, false);
$where_params['silast'] = $silast.'%';
}

Expand Down

0 comments on commit bed5439

Please sign in to comment.