aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2026-03-04 16:14:11 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-05 09:14:18 +0100
commite783563f7d4d8404a2e3ff1abef2f320b6a5916f (patch)
tree8f0d9b0dce2f20eb5d452674a88582139f0c1f10
parent66d962af48652e5b40418054047d1aa4193e408c (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 63f5fab..9595ffa 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] = [];