From 31fa6e50eb6a722986c50ecbec40ca6fdaf7ff48 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?=
 <benjamin.haettasch@fachschaft.informatik.tu-darmstadt.de>
Date: Tue, 19 May 2020 22:01:58 +0200
Subject: [PATCH] Hotfix for AK detail view with slots w/o rooms

---
 AKSubmission/templates/AKSubmission/ak_detail.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/AKSubmission/templates/AKSubmission/ak_detail.html b/AKSubmission/templates/AKSubmission/ak_detail.html
index bec74e3e..4fe43b0b 100644
--- a/AKSubmission/templates/AKSubmission/ak_detail.html
+++ b/AKSubmission/templates/AKSubmission/ak_detail.html
@@ -141,7 +141,7 @@
                 <td>{{ slot.start_simplified }}</td>
                 <td>{{ slot.duration }}</td>
                 <td>
-                    {% if "AKPlan"|check_app_installed %}
+                    {% if "AKPlan"|check_app_installed and slot.room %}
                         <a href="{% url 'plan:plan_room' event_slug=ak.event.slug pk=slot.room.pk %}">{{ slot.room }}</a>
                     {% else %}
                         {{ slot.room }}
-- 
GitLab