From e2820cd0840fa3fb140fae8ad5c43424695a83dc Mon Sep 17 00:00:00 2001 From: Peter Fricke <peter.fricke@hs-hannover.de> Date: Thu, 30 Aug 2018 13:30:28 +0200 Subject: [PATCH] readded shortname --- block_hshcourselist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block_hshcourselist.php b/block_hshcourselist.php index cbe32b9..0773f22 100644 --- a/block_hshcourselist.php +++ b/block_hshcourselist.php @@ -203,7 +203,7 @@ class block_hshcourselist extends block_base { $params = array_merge($params, $keywordArray); $where .= 'fullname ILIKE ?'; for ($i = 0; $i <= count($keywordArray)-2; $i++) { - $where .= ' AND fullname ILIKE ?'; + $where .= ' AND fullname ILIKE ? OR shortname ILIKE ?'; } } } -- GitLab