Project

General

Profile

0001-workflows-fix-display-value-reset-when-setting-backo.patch

Frédéric Péters, 13 October 2016 12:24 PM

Download (1.03 KB)

View differences:

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(-)
wcs/wf/backoffice_fields.py
136 136
                        formdata.data, formdef_field.id)
137 137
                if display_value:
138 138
                    formdata.data['%s_display' % formdef_field.id] = display_value
139
                elif d.has_key('%s_display' % formdef_field.id):
139
                elif formdata.data.has_key('%s_display' % formdef_field.id):
140 140
                    del formdata.data['%s_display' % formdef_field.id]
141 141

  
142 142
        formdata.store()
143
-