From 0ca7ba6b55e8c99facb998c712127109608ae5e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 29 Oct 2018 16:11:32 +0100 Subject: [PATCH] fix backward compatibiltiy for recipient groups (#27642) --- ocrloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocrloader.py b/ocrloader.py index 1fff8a7..04bb022 100755 --- a/ocrloader.py +++ b/ocrloader.py @@ -83,7 +83,7 @@ def process(cfg, filename, payload, enable_ocr=True): '-F', 'form.widgets.location=%s' % cfg.get('default_directory'), '-F', 'form.widgets.owner=%s' % cfg.get('user'), '-F', 'form.widgets.treating_groups=%s' % ( - cfg.get('treating_groups') or cfg.get('treating_groups') or ''), + cfg.get('treating_groups') or cfg.get('treating_group') or ''), '-F', 'form.widgets.recipient_groups=%s' % (cfg.get('recipient_groups') or ''), '-F', 'form.widgets.title=%s' % title, '-F', 'form.widgets.notification_recipients=%s' % cfg.get('notification_recipients', ''),