From bed543921661d2e042fdd490b34d06a50b1f5674 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski <mihail@moodle.com> Date: Thu, 29 Nov 2018 13:45:38 +0800 Subject: [PATCH] MDL-63480 reports: Fix name filters in completion reports --- report/completion/index.php | 4 ++-- report/progress/index.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/report/completion/index.php b/report/completion/index.php index f8b6ccef697..0591bfb5ed4 100644 --- a/report/completion/index.php +++ b/report/completion/index.php @@ -184,12 +184,12 @@ $where = array(); $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.'%'; } diff --git a/report/progress/index.php b/report/progress/index.php index 487330ec7ed..c35206b7c5b 100644 --- a/report/progress/index.php +++ b/report/progress/index.php @@ -124,12 +124,12 @@ $where = array(); $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.'%'; }