0001-workflows-add-label-to-email-button-action-tracing-e.patch
tests/form_pages/test_all.py | ||
---|---|---|
6876 | 6876 |
assert formdef.data_class().count() == 1 |
6877 | 6877 |
formdata = formdef.data_class().select()[0] |
6878 | 6878 |
assert formdata.status == 'wf-accepted' |
6879 |
assert formdata.evolution[-1].parts[-1].event == 'email-button' |
|
6879 | 6880 | |
6880 | 6881 |
# action token has been used, it will now return a custom 404 |
6881 | 6882 |
resp = app.get(action_url, status=404) |
wcs/forms/actions.py | ||
---|---|---|
95 | 95 |
) |
96 | 96 | |
97 | 97 |
def submit(self): |
98 |
url = jump_and_perform(self.formdata, self.action) |
|
98 |
url = jump_and_perform(self.formdata, self.action, event='email-button')
|
|
99 | 99 |
done_message = self.token.context.get('done_message') |
100 | 100 |
self.token.remove_self() |
101 | 101 |
if url: |
wcs/workflows.py | ||
---|---|---|
396 | 396 |
'continuation': _('Continuation'), |
397 | 397 |
'csv-import-created': _('Created (by CSV import)'), |
398 | 398 |
'edit-action': _('Actions after edit action'), |
399 |
'email-button': _('Email action button'), |
|
399 | 400 |
'frontoffice-created': _('Created (frontoffice submission)'), |
400 | 401 |
'global-action-button': _('Click on a global action button'), |
401 | 402 |
'global-action': _('Global action'), |
402 |
- |