BugFix DISTINCT in getOrganisationunitsByPersonId

This commit is contained in:
Manfred
2022-10-24 12:21:40 +02:00
parent b89494f80a
commit 409ccd7640
+1 -1
View File
@@ -556,7 +556,7 @@ class Prestudent_model extends DB_Model
*/
public function getOrganisationunitsByPersonId($person_id)
{
$query = 'SELECT o.oe_kurzbz,
$query = 'SELECT DISTINCT o.oe_kurzbz,
o.bezeichnung,
(CASE
WHEN sg.typ = \'b\' THEN ps.prestudent_id