Bug #23882
action Editer avec un statut inconnu
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
17 mai 2018
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Sur une action éditer dont le statut cible n'existe plus :
Exception: type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'items'' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/formdata.py", line 436, in perform_workflow 434 wf_status = self.get_status() 435 from wcs.workflows import perform_items > 436 url = perform_items(wf_status.items, self) 437 return url 438 locals: perform_items = <function perform_items at 0x7fd9afed3e60> self = <Obtenir-... "Obtenir .... \xc2\xbnn-nnn" i d:711> url = None wf_status = None File "/usr/lib/python2.7/dist-packages/wcs/forms/root.py", line 1066, in submitted_existing 1064 if item.id == self.edit_action_id and item.status: 1065 self.edited_data.jump_status(item.status) > 1066 url = self.edited_data.perform_workflow() 1067 break 1068 return redirect(url or '.') ...
Fichiers
Révisions associées
Historique
Mis à jour par Thomas Noël il y a presque 6 ans
Que faire :
- ne plus afficher l'action d'edition ? (ma préférence)
- rester sur le statut actuel ?
Mis à jour par Frédéric Péters il y a presque 6 ans
rester sur le statut actuel ?
C'est ce qui se passe sur un bouton de saut. (et sans doute plus simple)
Mis à jour par Thomas Noël il y a presque 6 ans
- Fichier 0001-do-not-jump-after-edit-if-target-status-is-unknown-2.patch 0001-do-not-jump-after-edit-if-target-status-is-unknown-2.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a presque 6 ans
Le break peut être désindenté; s/unexisting/nonexistent/, ack.
Mis à jour par Thomas Noël il y a presque 6 ans
- Statut changé de En cours à Résolu (à déployer)
commit 52ba7c30ac4a0d2ae104f5e53b58680b75dc3c2b Author: Thomas NOEL <tnoel@entrouvert.com> Date: Thu May 17 14:07:59 2018 +0200 do not jump after edit if target status is unknown (#23882)
Mis à jour par Frédéric Péters il y a plus de 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
do not jump after edit if target status is unknown (#23882)