Skip to content
Snippets Groups Projects
Commit ca5f419f authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

use SORM relation for PDF export instead of getFiles(), fixes #3424

Closes #3424

Merge request studip/studip!2347
parent 5d14e124
No related branches found
No related tags found
No related merge requests found
...@@ -457,7 +457,7 @@ abstract class BlockType ...@@ -457,7 +457,7 @@ abstract class BlockType
$template->set_attributes([ $template->set_attributes([
'title' => $this->getTitle(), 'title' => $this->getTitle(),
'payload' => $this->getPayload(), 'payload' => $this->getPayload(),
'files' => $this->getFiles() 'files' => $this->block->files
]); ]);
} catch (\Exception $e) { } catch (\Exception $e) {
// it catches the exception mostly because the template file could not be found. // it catches the exception mostly because the template file could not be found.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment