Skip to content
Snippets Groups Projects
Commit 669f5661 authored by Tobias Baden's avatar Tobias Baden
Browse files

Changed "LIKE" to "ILIKE" to get Case-Insensitive querys, updated Version number

parent b71683de
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,11 @@ class block_hshcourselist extends block_base {
$jsdata = array(
'instanceid' => $this->instance->id,
'sesskey' => sesskey(),
/*
Notice: Trying to get property of non-object in C:\Dev\xampp\htdocs\moodle\blocks\hshcourselist\block_hshcourselist.php on line 117 (122)
Notice: Trying to get property of non-object in C:\Dev\xampp\htdocs\moodle\blocks\hshcourselist\block_hshcourselist.php on line 118 (123)
*/
'displaymode' => $this->config->displaymode,
'orderbysemester' => $this->config->orderbysemester,
'contextid' => $this->page->context->id
......@@ -155,7 +160,7 @@ class block_hshcourselist extends block_base {
// $where .= 'idnumber LIKE ?'; --- Bei Postgres nur "id"
} else {
$params = array_merge($params, array("%$search%", "%$search%"));
$where .= 'shortname LIKE ? OR fullname LIKE ?';
$where .= 'shortname ILIKE ? OR fullname ILIKE ?';
}
}
$where .= ')';
......
<?php
$plugin->component = 'block_hshcourselist';
$plugin->version = 2018041400; // YYYYMMDDHH
$plugin->version = 2018081001; // YYYYMMDDHH
$plugin->requires = 2016112900; // YYYYMMDDHH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment