Skip to content
Snippets Groups Projects
Commit 8b64f92d authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix manually sending meeting reminders

/close #190
parent 6013f575
Branches
No related tags found
No related merge requests found
...@@ -930,7 +930,7 @@ def send_protocol_reminder(protocol): ...@@ -930,7 +930,7 @@ def send_protocol_reminder(protocol):
if not config.MAIL_ACTIVE: if not config.MAIL_ACTIVE:
flash("Die Mailfunktion ist nicht aktiviert.", "alert-error") flash("Die Mailfunktion ist nicht aktiviert.", "alert-error")
return back.redirect("show_protocol", protocol_id=protocol.id) return back.redirect("show_protocol", protocol_id=protocol.id)
meetingreminders = protocol.reminders meetingreminders = protocol.protocoltype.reminders
if len(meetingreminders) == 0: if len(meetingreminders) == 0:
flash("Für diesen Protokolltyp sind keine Einladungsmails " flash("Für diesen Protokolltyp sind keine Einladungsmails "
"konfiguriert.", "alert-error") "konfiguriert.", "alert-error")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment