Lehreinheit model getLesForLv method: only getting necessary fields to save memory

This commit is contained in:
Alexei Karpenko
2025-09-10 17:39:32 +02:00
parent 4c3f9e42b9
commit 06a41e24d6
@@ -28,6 +28,11 @@ class Lehreinheit_model extends DB_Model
{
$lehreinheiten = array();
$this->addSelect(
'lehreinheit_id, lehrveranstaltung_id, studiensemester_kurzbz, lehrform_kurzbz,
stundenblockung, wochenrythmus, start_kw, raumtyp, raumtypalternativ,
sprache, lehre, unr, lvnr, lehrfach_id, gewicht'
);
$this->addOrder('lehreinheit_id');
$les = $this->loadWhere(
array('lehrveranstaltung_id' => $lehrveranstaltung_id,