diff options
| author | Murtaza Sultani <sultani@data-quest.de> | 2025-07-28 17:23:38 +0200 |
|---|---|---|
| committer | Murtaza Sultani <sultani@data-quest.de> | 2025-07-28 17:23:38 +0200 |
| commit | 28a9e7237135aa6a4f6beb69bda09a28d52d31a4 (patch) | |
| tree | c4f9e6dcb68808fda7cb0b6c9899fd3ef777638a /lib/models/CourseTopic.php | |
| parent | 1352f30ea1a3fd4401e0e7eba988c560c7fc9585 (diff) | |
Resolve "Forum verwendet falsche Rechteabfragen in der JSON-API"
Closes #5753
Merge request studip/studip!4386
Diffstat (limited to 'lib/models/CourseTopic.php')
| -rw-r--r-- | lib/models/CourseTopic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/CourseTopic.php b/lib/models/CourseTopic.php index fb31efc..f61738a 100644 --- a/lib/models/CourseTopic.php +++ b/lib/models/CourseTopic.php @@ -51,7 +51,7 @@ class CourseTopic extends SimpleORMap 'foreign_key' => 'author_id' ]; $config['has_and_belongs_to_many']['forum_topics'] = [ - 'class_name' => \Forum\ForumTopic::class, + 'class_name' => \Forum\Topic::class, 'thru_table' => 'forum_topics_issues', 'on_delete' => 'delete', 'on_store' => 'store' @@ -122,7 +122,7 @@ class CourseTopic extends SimpleORMap public function connectWithForumThread() { if ($this->seminar_id && !$this->forum_thread_url) { - $forum_topic = new \Forum\ForumTopic(); + $forum_topic = new \Forum\Topic(); $forum_topic['range_id'] = $this->seminar_id; $forum_topic['name'] = $this['title']; $forum_topic['description'] = $this['description']; |
