Project

General

Profile

Bug #57573

action redirection + action de suppression, redirigé vers ce qui était défini par l'action de redirection

Added by Frédéric Péters (absent jusqu’au 12/12) 2 months ago. Updated about 1 month ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
04 Oct 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

Depuis #52927, l'enchainement suppression + redirection contrôlée par le workflow ne fonctionne plus, la redirection se fait nécessairement vers celle en dur dans wcs/wf/remove.py.

Je dirais

@@ -85,7 +85,7 @@ def perform_items(items, formdata, depth=20, event=None):
         try:
             url = item.perform(formdata) or url
         except AbortActionException as e:
-            url = e.url or url
+            url = url or e.url
             break
         if formdata.status != old_status:
             break

assurerait l'affaire.


Files

Associated revisions

Revision 010382fa (diff)
Added by Frédéric Péters (absent jusqu’au 12/12) about 1 month ago

workflows: consider redirect URL over remove/abort URL (#57573)

History

#1

Updated by Frédéric Péters (absent jusqu’au 12/12) 2 months ago

  • Status changed from Nouveau to En cours
#2

Updated by Frédéric Péters (absent jusqu’au 12/12) 2 months ago

#3

Updated by Lauréline Guerin about 1 month ago

  • Status changed from Solution proposée to Solution validée
#4

Updated by Frédéric Péters (absent jusqu’au 12/12) about 1 month ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 010382fa7a322340b4cf08a02fb2d607c26b8fc9
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Oct 5 14:49:14 2021 +0200

    workflows: consider redirect URL over remove/abort URL (#57573)
#5

Updated by Frédéric Péters (absent jusqu’au 12/12) about 1 month ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF