From 55f30752e755d6a21c6f3835418ed67da133d340 Mon Sep 17 00:00:00 2001 From: Magnus Giesbert <magnus@fsmpi.rwth-aachen.de> Date: Wed, 2 Feb 2022 03:18:40 +0100 Subject: [PATCH] only add printer choices if `config.PRINTING_ACTIVE` is true. --- views/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/forms.py b/views/forms.py index 3b7e64e..77308a7 100644 --- a/views/forms.py +++ b/views/forms.py @@ -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 -- GitLab