mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
Merge branch 'master' into feature-60973/komponente_fuer_lehrfaecherverteilung
# Conflicts: # application/models/education/Lehrveranstaltung_model.php # application/models/organisation/Studienplan_model.php # application/models/person/Notiz_model.php # application/models/ressource/Mitarbeiter_model.php # public/js/components/Stv/Studentenverwaltung.js # public/js/components/Stv/Studentenverwaltung/Verband.js # system/dbupdate_3.4.php # system/phrasesupdate.php
This commit is contained in:
@@ -157,4 +157,17 @@ class Studienplan_model extends DB_Model
|
||||
return $this->execReadOnlyQuery($qry, array($lv_id));
|
||||
}
|
||||
|
||||
|
||||
public function getStudienplaeneForPerson($person_id)
|
||||
{
|
||||
$this->addDistinct();
|
||||
$this->addSelect($this->dbTable . '.*');
|
||||
$this->addSelect('ps.*');
|
||||
$this->addJoin('public.tbl_prestudentstatus pss', 'studienplan_id');
|
||||
$this->addJoin('public.tbl_prestudent ps', 'prestudent_id');
|
||||
|
||||
return $this->loadWhere([
|
||||
'person_id' => $person_id
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user