Skip to content
Snippets Groups Projects
Commit 5b8d54a6 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

drop sub-select, re #2870

Merge request studip/studip!2025
parent 7e33043f
No related branches found
No related tags found
No related merge requests found
...@@ -364,7 +364,7 @@ class StudipStudyArea extends SimpleORMap implements StudipTreeNode ...@@ -364,7 +364,7 @@ class StudipStudyArea extends SimpleORMap implements StudipTreeNode
public static function search($searchTerm) public static function search($searchTerm)
{ {
return self::findBySql( 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%"] ['searchTerm' => "%$searchTerm%"]
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment