Projet

Général

Profil

Bug #71973

wf/notification, error dans perform (UnboundLocalError: local variable 'to' referenced before assignment)

Ajouté par Sentry Io il y a plus d'un an. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
02 décembre 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/97662/

UnboundLocalError: local variable 'to' referenced before assignment
(18 additional frame(s) were not displayed)
...
  File "wcs/formdata.py", line 750, in handle_workflow_form
    return wf_status.handle_form(form, self, user)
  File "wcs/workflows.py", line 2255, in handle_form
    url = filled.perform_workflow(event='workflow-form-submit')
  File "wcs/formdata.py", line 669, in perform_workflow
    url = perform_items(wf_status.items, self, event=event)
  File "wcs/workflows.py", line 96, in perform_items
    url = item.perform(formdata) or url
  File "wcs/wf/notification.py", line 173, in perform
    self.to = [x for x in to if x != '_submitter']

Fichiers

Révisions associées

Révision 6d35a544 (diff)
Ajouté par Frédéric Péters il y a plus d'un an

workflows: fix notifications to non-submitter when i18n is enabled (#71973)

Historique

#1

Mis à jour par Lauréline Guérin il y a plus d'un an

  • Projet changé de Suivi des traces à w.c.s.
#2

Mis à jour par Frédéric Péters il y a plus d'un an

  • Assigné à mis à Frédéric Péters

ça doit être moi via le multilinguisme :/

#3

Mis à jour par Frédéric Péters il y a plus d'un an

#4

Mis à jour par Lauréline Guérin il y a plus d'un an

  • Statut changé de Solution proposée à Solution validée
#5

Mis à jour par Frédéric Péters il y a plus d'un an

  • Statut changé de Solution validée à Résolu (à déployer)
commit 6d35a544befa1ac2d01b366d2cc89eefe6af6112
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Dec 2 15:23:01 2022 +0100

    workflows: fix notifications to non-submitter when i18n is enabled (#71973)
#6

Mis à jour par Transition automatique il y a plus d'un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#7

Mis à jour par Transition automatique il y a environ un an

Automatic expiration

Formats disponibles : Atom PDF