fixed bug on entering themes without teachers

This commit is contained in:
Jottyfan
2025-12-15 21:12:29 +01:00
parent b048b7c7bc
commit 8f9878a8e2
5 changed files with 32 additions and 12 deletions

View File

@@ -51,7 +51,7 @@
</div>
</div>
</th:block>
<form th:action="@{/theme/update?slotId={id}(id=${slotId})}" method="post" th:object="${lesson}">
<form th:action="@{/theme/update?slotId={id}(id=${slotId})}" method="post" th:object="${lesson}" th:if="${lesson}">
<input type="hidden" th:field="*{pkLesson}" />
<div class="row g-2 blockframe">
<div class="col-sm-3">Anmerkungen zur Stunde</div>