aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Course.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/Course.php')
-rw-r--r--lib/models/Course.php13
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
*/