misc: skip _ts update if there's no such field (#87547) #1198
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/87547-no-ts-no-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
5b89ecb978
tof62ed2bd7b
@ -2664,6 +2664,7 @@ class WorkflowStatus(SerieOfActionsMixin):
if form is None:
form = Form(enctype='multipart/form-data', use_tokens=False)
form.attrs['id'] = 'wf-actions'
form.add_hidden('_ts', str(filled.last_update_time.timestamp()))
Quand on est sur un formulaire avec uniquement des actions globales, il n'y avait pas de _ts.
@ -2694,2 +2695,4 @@
def handle_form(self, form, filled, user, check_replay=True):
# check for global actions
if check_replay and form.get('_ts') != str(filled.last_update_time.timestamp()):
raise ReplayException()
Et pareil la vérification ne se faisait pas quand on était sur des actions globales.
f62ed2bd7b
to055c6b2766