From c7a50f71d5ceeafeaeeeac7630818b3cd3e9f58e Mon Sep 17 00:00:00 2001
From: Ron Lucke <lucke@elan-ev.de>
Date: Mon, 25 Mar 2024 12:57:28 +0000
Subject: [PATCH] fix #3887

Closes #3887

Merge request studip/studip!2743
---
 app/controllers/courseware/public.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/controllers/courseware/public.php b/app/controllers/courseware/public.php
index aa5a3099b32..a7472ae836c 100644
--- a/app/controllers/courseware/public.php
+++ b/app/controllers/courseware/public.php
@@ -19,6 +19,7 @@ class Courseware_PublicController extends StudipController
             $publicLink = PublicLink::find($this->link_id);
             $this->invalid = $publicLink === null;
             if (!$this->invalid) {
+                $this->block_types = Courseware\BlockTypes\BlockType::getBlockTypes();
                 $this->expired = $publicLink->isExpired();
                 $this->link_pass = $publicLink->password;
                 $this->entry_element_id = $publicLink->structural_element_id;
-- 
GitLab