Skip to content
Snippets Groups Projects
Commit eaba32ef authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

fix table name in SQL query, fixes #1727

Closes #1727

Merge request studip/studip!1124
parent ff2aca02
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ class InstituteSearch extends SearchType ...@@ -56,7 +56,7 @@ class InstituteSearch extends SearchType
ORDER BY `Name` ASC"; ORDER BY `Name` ASC";
} else { } else {
$query = "SELECT `Institut_id`, `Name` $query = "SELECT `Institut_id`, `Name`
FROM `Institute_id` FROM `Institute`
JOIN `user_inst` USING (`Institut_id`) JOIN `user_inst` USING (`Institut_id`)
WHERE `user_id` = :user_id WHERE `user_id` = :user_id
AND `Name` LIKE CONCAT('%', :input, '%') AND `Name` LIKE CONCAT('%', :input, '%')
......
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