Skip to content
Snippets Groups Projects
Commit 5029f8e0 authored by Ron Lucke's avatar Ron Lucke
Browse files

Courseware: PDF-Export exportiert "unsichtbare" Blöcke

Closes #3726

Merge request studip/studip!3316
parent 1b2c9697
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<h4><?= htmlReady($section['name']) ?></h4>
<? foreach ($section['blocks'] as $block_id): ?>
<? $block = $container->blocks->find($block_id); ?>
<? if ($block): ?>
<? if ($block && $block->visible): ?>
<? $block_html_template = $block->type->getPdfHtmlTemplate(); ?>
<? if ($block_html_template): ?>
<?= $block_html_template->render(); ?>
......
<? foreach ($payload['sections'][0]['blocks'] as $block_id): ?>
<? $block = $container->blocks->find($block_id); ?>
<? if ($block): ?>
<? if ($block && $block->visible): ?>
<? $block_html_template = $block->type->getPdfHtmlTemplate(); ?>
<? if ($block_html_template): ?>
<?= $block_html_template->render(); ?>
......
......@@ -2,7 +2,7 @@
<h4><?= htmlReady($section['name']) ?></h4>
<? foreach ($section['blocks'] as $block_id): ?>
<? $block = $container->blocks->find($block_id); ?>
<? if ($block): ?>
<? if ($block && $block->visible): ?>
<? $block_html_template = $block->type->getPdfHtmlTemplate(); ?>
<? if ($block_html_template): ?>
<?= $block_html_template->render(); ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment