From 181b03622738beea8c7cf7efb285edd5e1f9c433 Mon Sep 17 00:00:00 2001
From: FSMPI Admin-Team <admin@fsmpi.rwth-aachen.de>
Date: Wed, 10 May 2017 16:54:44 +0200
Subject: [PATCH] Enable adding default tops

---
 server.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server.py b/server.py
index 2adc7ae..c1acb76 100755
--- a/server.py
+++ b/server.py
@@ -326,7 +326,7 @@ def new_default_top(protocoltype):
         for protocol in protocoltype.protocols:
             if not protocol.done:
                 localtop = LocalTOP(protocol_id=protocol.id,
-                    defaulttop_id=defaultop.id, description="")
+                    defaulttop_id=defaulttop.id, description="")
                 db.session.add(localtop)
         db.session.commit()
         flash("Der Standard-TOP {} wurde für dem Protokolltyp {} hinzugefügt.".format(defaulttop.name, protocoltype.name), "alert-success")
-- 
GitLab