From bed543921661d2e042fdd490b34d06a50b1f5674 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski 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 f8b6ccef69713..0591bfb5ed473 100644 --- a/report/completion/index.php +++ b/report/completion/index.php @@ -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.'%'; } diff --git a/report/progress/index.php b/report/progress/index.php index 487330ec7ed2f..c35206b7c5bc9 100644 --- a/report/progress/index.php +++ b/report/progress/index.php @@ -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.'%'; }