diff options
| author | André Noack <noack@data-quest.de> | 2025-04-04 11:51:59 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-04-04 11:51:59 +0000 |
| commit | 99fb6c478d95e9d538832b096882ff2e5c30dc9a (patch) | |
| tree | 922dafa963edd324b7687e657f57addb2dead685 /lib/models/Course.php | |
| parent | 7f1519ebd03323c6143345b895b8343a5a2a6e12 (diff) | |
Resolve "Beim Erzeugen von Course Objekten werden mehrfach sinnlos die beteiligten Einrichtungen abgefragt"
Closes #5467
Merge request studip/studip!4104
Diffstat (limited to 'lib/models/Course.php')
| -rw-r--r-- | lib/models/Course.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/models/Course.php b/lib/models/Course.php index 24e9d80..b894abe 100644 --- a/lib/models/Course.php +++ b/lib/models/Course.php @@ -2203,19 +2203,6 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe ][$this->completion] ?? _('undefiniert'); } - public function setValue($field, $value) - { - if (strtolower($field) === 'institut_id') { - $this->institutes = $this->institutes->filter(function (Institute $institute) { - return $institute->id !== $this->institut_id; - }); - } elseif (strtolower($field) === 'institutes') { - $this->initRelation($field); - } - - return parent::setValue($field, $value); - } - /** * Handle all things related to storing the institutes */ |
