diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-11-13 13:40:46 +0100 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-11-13 13:01:31 +0000 |
| commit | b9933ec5a55a03fe8a960e4b82f5d3a1ef6178d2 (patch) | |
| tree | 6049e75bf15e5eea9a9a980f845ddad8ee214473 | |
| parent | 9a7a179ad44ed54ddcc47043cd936083bc634d30 (diff) | |
use SORM relation for PDF export instead of getFiles(), fixes #3427biest-3427
| -rw-r--r-- | lib/models/Courseware/BlockTypes/BlockType.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/Courseware/BlockTypes/BlockType.php b/lib/models/Courseware/BlockTypes/BlockType.php index 88f07b1..de69161 100644 --- a/lib/models/Courseware/BlockTypes/BlockType.php +++ b/lib/models/Courseware/BlockTypes/BlockType.php @@ -457,7 +457,7 @@ abstract class BlockType $template->set_attributes([ 'title' => $this->getTitle(), 'payload' => $this->getPayload(), - 'files' => $this->getFiles() + 'files' => $this->block->files ]); } catch (\Exception $e) { // it catches the exception mostly because the template file could not be found. |
