Skip to content

Commit

Permalink
Merge pull request #611 from SlateFoundation/develop
Browse files Browse the repository at this point in the history
Release: v3.4.3
  • Loading branch information
themightychris authored Oct 12, 2021
2 parents 4195d95 + eab9346 commit 6049182
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .holo/sources/slate.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[holosource]
url = "https://github.com/SlateFoundation/slate"
ref = "refs/tags/v2.16.3"
ref = "refs/tags/v2.16.5"
4 changes: 2 additions & 2 deletions data-exporters/slate-cbl/student-tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@
foreach ($StudentTask->Task->Attachments as $Attachment) {
$attachments[] = $Attachment->URL;
}
$teacherAttachments = !empty($attachments) ? '"'.implode('", "', $attachments).'"' : null;
$teacherAttachments = !empty($attachments) ? implode(',', $attachments) : null;

$attachments = [];
foreach ($StudentTask->Attachments as $Attachment) {
$attachments[] = $Attachment->URL;
}
$studentAttachments = !empty($attachments) ? '"'.implode('", "', $attachments).'"' : null;
$studentAttachments = !empty($attachments) ? implode(',', $attachments) : null;

yield [
'StudentTaskID' => $StudentTask->ID,
Expand Down
4 changes: 2 additions & 2 deletions php-classes/Slate/CBL/Tasks/StudentTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ public function getOrCreateDemonstration()
if (!$this->Demonstration) {
$this->Demonstration = ExperienceDemonstration::create([
'StudentID' => $this->StudentID,
'PerformanceType' => $this->Task->Title,
'Context' => $this->Task->Section->Title,
'PerformanceType' => $this->Task->getTitle(),
'Context' => $this->Task->Section->getTitle(),
'ExperienceType' => $this->Task->ExperienceType
]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
'StudentID' => $StudentTask->StudentID,
'Demonstrated' => $StudentTask->Submitted ?: null,
'ExperienceType' => $StudentTask->ExperienceType,
'PerformanceType' => $StudentTask->Task->Title,
'Context' => $StudentTask->Section->Title
'PerformanceType' => $StudentTask->Task->getTitle(),
'Context' => $StudentTask->Section->getTitle()
]);
$Demonstration->save(false);

Expand Down

0 comments on commit 6049182

Please sign in to comment.