Skip to content
Snippets Groups Projects
Commit 8cfa88c8 authored by markus scheller's avatar markus scheller
Browse files

Bugfix: Changed the way of showing the chosen template

parent bf4c10f4
No related branches found
No related tags found
No related merge requests found
......@@ -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 = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment