Skip to content
Snippets Groups Projects
Commit 55f30752 authored by Magnus Giesbert's avatar Magnus Giesbert
Browse files

only add printer choices if `config.PRINTING_ACTIVE` is true.

parent 75088536
Branches
No related tags found
1 merge request!16Fix errors through config options
......@@ -61,7 +61,7 @@ def get_calendar_choices(protocoltype=None):
def get_printer_choices():
choices = []
if config.PRINTING_PRINTERS is not None:
if config.PRINTING_ACTIVE and config.PRINTING_PRINTERS is not None:
choices = list(zip(config.PRINTING_PRINTERS, config.PRINTING_PRINTERS))
choices.insert(0, ("", "Nicht drucken"))
return choices
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment