mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-63480 reports: Fix name filters in completion reports
This commit is contained in:
parent
b39f7194a8
commit
1f3fd18541
2 changed files with 4 additions and 4 deletions
|
@ -184,12 +184,12 @@ $where = array();
|
||||||
$where_params = array();
|
$where_params = array();
|
||||||
|
|
||||||
if ($sifirst !== 'all') {
|
if ($sifirst !== 'all') {
|
||||||
$where[] = $DB->sql_like('u.firstname', ':sifirst', false);
|
$where[] = $DB->sql_like('u.firstname', ':sifirst', false, false);
|
||||||
$where_params['sifirst'] = $sifirst.'%';
|
$where_params['sifirst'] = $sifirst.'%';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($silast !== 'all') {
|
if ($silast !== 'all') {
|
||||||
$where[] = $DB->sql_like('u.lastname', ':silast', false);
|
$where[] = $DB->sql_like('u.lastname', ':silast', false, false);
|
||||||
$where_params['silast'] = $silast.'%';
|
$where_params['silast'] = $silast.'%';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,12 +124,12 @@ $where = array();
|
||||||
$where_params = array();
|
$where_params = array();
|
||||||
|
|
||||||
if ($sifirst !== 'all') {
|
if ($sifirst !== 'all') {
|
||||||
$where[] = $DB->sql_like('u.firstname', ':sifirst', false);
|
$where[] = $DB->sql_like('u.firstname', ':sifirst', false, false);
|
||||||
$where_params['sifirst'] = $sifirst.'%';
|
$where_params['sifirst'] = $sifirst.'%';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($silast !== 'all') {
|
if ($silast !== 'all') {
|
||||||
$where[] = $DB->sql_like('u.lastname', ':silast', false);
|
$where[] = $DB->sql_like('u.lastname', ':silast', false, false);
|
||||||
$where_params['silast'] = $silast.'%';
|
$where_params['silast'] = $silast.'%';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue