From 06a41e24d6e4e5f1e9a5664c3c7b2476b033abf9 Mon Sep 17 00:00:00 2001 From: Alexei Karpenko Date: Wed, 10 Sep 2025 17:39:32 +0200 Subject: [PATCH] Lehreinheit model getLesForLv method: only getting necessary fields to save memory --- application/models/education/Lehreinheit_model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/models/education/Lehreinheit_model.php b/application/models/education/Lehreinheit_model.php index d4bc7a22f..fadb7e113 100644 --- a/application/models/education/Lehreinheit_model.php +++ b/application/models/education/Lehreinheit_model.php @@ -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,