From c5757e50250417d50c719c7bac314d056c40e535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 13 Oct 2016 12:23:41 +0200 Subject: [PATCH] workflows: fix display value reset when setting backoffice fields (#13584) --- wcs/wf/backoffice_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/wf/backoffice_fields.py b/wcs/wf/backoffice_fields.py index 905b476..892679b 100644 --- a/wcs/wf/backoffice_fields.py +++ b/wcs/wf/backoffice_fields.py @@ -136,7 +136,7 @@ class SetBackofficeFieldsWorkflowStatusItem(WorkflowStatusItem): formdata.data, formdef_field.id) if display_value: formdata.data['%s_display' % formdef_field.id] = display_value - elif d.has_key('%s_display' % formdef_field.id): + elif formdata.data.has_key('%s_display' % formdef_field.id): del formdata.data['%s_display' % formdef_field.id] formdata.store() -- 2.9.3