aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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] = [];