Projet

Général

Profil

0001-workflows-limit-automatic-id_display-handling-to-POS.patch

Frédéric Péters, 31 juillet 2020 16:54

Télécharger (1,35 ko)

Voir les différences:

Subject: [PATCH] workflows: limit automatic id_display handling to POSTs
 (#45668)

 wcs/wf/wscall.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
wcs/wf/wscall.py
382 382
                        response, data=data, exc_info=sys.exc_info())
383 383
            else:
384 384
                workflow_data['%s_response' % self.varname] = d
385
                if isinstance(d, dict):
385
                if isinstance(d, dict) and self.method == 'POST':
386
                    # if POST response contains a display_id value it is
387
                    # considered to be used as replacement for the form
388
                    # own identifier; this is used so a unique public
389
                    # identifier can be used between w.c.s. and a business
390
                    # application.
386 391
                    if isinstance(d.get('data'), dict) and d['data'].get('display_id'):
387 392
                        formdata.id_display = d.get('data', {}).get('display_id')
388 393
                    elif d.get('display_id'):
389
-