Skip to content

Commit

Permalink
Merge pull request #612 from SlateFoundation/fix/exports-attachment-f…
Browse files Browse the repository at this point in the history
…ield-format

fix: remove quotes from attachments list
  • Loading branch information
themightychris authored Oct 11, 2021
2 parents 95544d6 + 3a460b2 commit ffc977e
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit ffc977e

Please sign in to comment.