aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2026-03-04 16:14:11 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2026-03-04 16:14:11 +0000
commit6c9827e00b321b5a370aa5f3ba9cd34f7838a925 (patch)
tree0e39b288941b02399d50989253ecbc7af17d5aa3
parent76e5b4713a4673663de7f982e9f634915e67c837 (diff)
Use the correct array index, fixes #6328
Closes #6328 Merge request studip/studip!4797
-rw-r--r--lib/models/Courseware/Instance.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/Courseware/Instance.php b/lib/models/Courseware/Instance.php
index 29499ec..4fecbfa 100644
--- a/lib/models/Courseware/Instance.php
+++ b/lib/models/Courseware/Instance.php
@@ -593,8 +593,8 @@ class Instance
$data = [];
foreach ($statement as $row) {
- $structuralElementId = $row['structural_element_id'];
- unset($row['structural_element_id']);
+ $structuralElementId = $row['id'];
+ unset($row['id']);
if (!isset($data[$structuralElementId])) {
$data[$structuralElementId] = [];