mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 00:54:27 +00:00
speed up student selection
This commit is contained in:
@@ -547,6 +547,7 @@ class Studiengang_model extends DB_Model
|
||||
$this->addSelect('p.prestudent_id');
|
||||
$this->addSelect('pers.vorname');
|
||||
$this->addSelect('pers.nachname');
|
||||
$this->addSelect("CONCAT(UPPER(pers.nachname), ' ', pers.vorname, ' (', " . $this->dbTable . ".bezeichnung, ')') AS name");
|
||||
|
||||
$this->addJoin('public.tbl_prestudent p', 'studiengang_kz');
|
||||
$this->addJoin(
|
||||
@@ -585,6 +586,8 @@ class Studiengang_model extends DB_Model
|
||||
$this->db->group_end();
|
||||
}
|
||||
|
||||
$this->addOrder('name');
|
||||
|
||||
return $this->load();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user