From 5b8d54a68cd98f67462b7f2877ac3463ec84a636 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Thu, 10 Aug 2023 12:37:24 +0000 Subject: [PATCH] drop sub-select, re #2870 Merge request studip/studip!2025 --- lib/models/StudipStudyArea.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/StudipStudyArea.class.php b/lib/models/StudipStudyArea.class.php index 74c50a78409..6134fdaf4f7 100644 --- a/lib/models/StudipStudyArea.class.php +++ b/lib/models/StudipStudyArea.class.php @@ -364,7 +364,7 @@ class StudipStudyArea extends SimpleORMap implements StudipTreeNode public static function search($searchTerm) { return self::findBySql( - "sem_tree_id IN (SELECT sem_tree_id FROM sem_tree WHERE name LIKE :searchTerm ORDER BY priority)", + "name LIKE :searchTerm ORDER BY priority", ['searchTerm' => "%$searchTerm%"] ); } -- GitLab