aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Course.php
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2025-04-09 07:40:47 +0000
committerThomas Hackl <hackl@data-quest.de>2025-04-09 07:40:47 +0000
commit95426bce770a8a1b1dddd5d2cb61af7d1ad885fb (patch)
treec53dc3bfd54af474c25a521e01b990a3ee27dc0c /lib/models/Course.php
parentcc5374c065f2aeee1dcfb0aed2338cb03a2c3d91 (diff)
Resolve "Zugangsberechtigungen in einer Veranstaltung lassen sich nicht ändern."
Closes #5150 Merge request studip/studip!4112
Diffstat (limited to 'lib/models/Course.php')
-rw-r--r--lib/models/Course.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/models/Course.php b/lib/models/Course.php
index 5ab49ac..97c1d70 100644
--- a/lib/models/Course.php
+++ b/lib/models/Course.php
@@ -140,10 +140,11 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe
'on_store' => 'store',
];
$config['has_many']['statusgruppen'] = [
- 'class_name' => Statusgruppen::class,
- 'order_by' => 'ORDER BY position',
- 'on_delete' => 'delete',
- 'on_store' => 'store',
+ 'class_name' => Statusgruppen::class,
+ 'assoc_foreign_key' => 'range_id',
+ 'order_by' => 'ORDER BY position',
+ 'on_delete' => 'delete',
+ 'on_store' => 'store',
];
$config['has_many']['admission_applicants'] = [
'class_name' => AdmissionApplication::class,