Projet

Général

Profil

Bug #6058

crash quand formdata.formdef.workflow_roles == None

Ajouté par Thomas Noël il y a plus de 9 ans. Mis à jour il y a plus de 9 ans.

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Trace reçue :

Exception:
  type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute
'copy''

Stack trace (most recent call first):
  File "/usr/lib/python2.6/site-packages/wcs/formdata.py", line 366, in get_substitution_v
ariables
   364         # typically give variables such as form_role_receiver_name and
   365         # form_role_receiver_emails.
>  366         workflow_roles = self.formdef.workflow_roles.copy()
   367         if self.workflow_roles:
   368             workflow_roles.update(self.workflow_roles)

peut-être dû à des formdefs "anciens"...


Fichiers

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 9 ans

#2

Mis à jour par Frédéric Péters il y a plus de 9 ans

  • Statut changé de En cours à Résolu (à déployer)

Vu en live avec Thomas.

commit 4ee347afc5e2e8fff82d69664cee1a162bd51fa2
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed Dec 3 20:36:22 2014 +0100

    formdata: fix substitution variables when workflow_roles is None (#6058)
#3

Mis à jour par Thomas Noël il y a plus de 9 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF