Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-block_hshcourselist
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-block_hshcourselist
Commits
669f5661
Commit
669f5661
authored
6 years ago
by
Tobias Baden
Browse files
Options
Downloads
Patches
Plain Diff
Changed "LIKE" to "ILIKE" to get Case-Insensitive querys, updated Version number
parent
b71683de
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
block_hshcourselist.php
+6
-1
6 additions, 1 deletion
block_hshcourselist.php
version.php
+1
-1
1 addition, 1 deletion
version.php
with
7 additions
and
2 deletions
block_hshcourselist.php
+
6
−
1
View file @
669f5661
...
@@ -114,6 +114,11 @@ class block_hshcourselist extends block_base {
...
@@ -114,6 +114,11 @@ class block_hshcourselist extends block_base {
$jsdata
=
array
(
$jsdata
=
array
(
'instanceid'
=>
$this
->
instance
->
id
,
'instanceid'
=>
$this
->
instance
->
id
,
'sesskey'
=>
sesskey
(),
'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
,
'displaymode'
=>
$this
->
config
->
displaymode
,
'orderbysemester'
=>
$this
->
config
->
orderbysemester
,
'orderbysemester'
=>
$this
->
config
->
orderbysemester
,
'contextid'
=>
$this
->
page
->
context
->
id
'contextid'
=>
$this
->
page
->
context
->
id
...
@@ -155,7 +160,7 @@ class block_hshcourselist extends block_base {
...
@@ -155,7 +160,7 @@ class block_hshcourselist extends block_base {
// $where .= 'idnumber LIKE ?'; --- Bei Postgres nur "id"
// $where .= 'idnumber LIKE ?'; --- Bei Postgres nur "id"
}
else
{
}
else
{
$params
=
array_merge
(
$params
,
array
(
"%
$search
%"
,
"%
$search
%"
));
$params
=
array_merge
(
$params
,
array
(
"%
$search
%"
,
"%
$search
%"
));
$where
.
=
'shortname LIKE ? OR fullname LIKE ?'
;
$where
.
=
'shortname
I
LIKE ? OR fullname
I
LIKE ?'
;
}
}
}
}
$where
.
=
')'
;
$where
.
=
')'
;
...
...
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
669f5661
<?php
<?php
$plugin
->
component
=
'block_hshcourselist'
;
$plugin
->
component
=
'block_hshcourselist'
;
$plugin
->
version
=
20180
414
00
;
// YYYYMMDDHH
$plugin
->
version
=
20180
81
00
1
;
// YYYYMMDDHH
$plugin
->
requires
=
2016112900
;
// YYYYMMDDHH
$plugin
->
requires
=
2016112900
;
// YYYYMMDDHH
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment