Commit 8cfa88c8 authored by markus scheller's avatar markus scheller
Browse files

Bugfix: Changed the way of showing the chosen template

parent bf4c10f4
......@@ -245,7 +245,7 @@ class ProtocolTypeTable(SingleValueTable):
network_part.append("")
_latex_templates = getattr(config, "LATEX_TEMPLATES", None)
if _latex_templates is not None:
latex_template_part = [_latex_templates[self.value.latex_template]['name'] if self.value.latex_template is not (None or "") else "Standardvorlage"]
latex_template_part = ["Standardvorlage" if self.value.latex_template is None or self.value.latex_template == "" else _latex_templates[self.value.latex_template]['name']]
else:
latex_template_part = []
feed_part = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment