summaryrefslogtreecommitdiffstats
path: root/ocrloader.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-10-29 15:11:32 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-10-29 15:11:32 (GMT)
commit0ca7ba6b55e8c99facb998c712127109608ae5e0 (patch)
tree283c9c1fa979d9d554a99e5be5d2614d9b966ae0 /ocrloader.py
parent7dfcec5756930f5281288508b45c3fa1a63b4cfe (diff)
downloadpfwbged.ocrloader-0ca7ba6b55e8c99facb998c712127109608ae5e0.zip
pfwbged.ocrloader-0ca7ba6b55e8c99facb998c712127109608ae5e0.tar.gz
pfwbged.ocrloader-0ca7ba6b55e8c99facb998c712127109608ae5e0.tar.bz2
fix backward compatibiltiy for recipient groups (#27642)HEADmaster
Diffstat (limited to 'ocrloader.py')
-rwxr-xr-xocrloader.py2
1 files changed, 1 insertions, 1 deletions
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', ''),