Bug #47804
préremplissage, 'NoneType' object is not subscriptable
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
16 octobre 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'TypeError'>', value = ''NoneType' object is not subscriptable' Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/forms/root.py", line 343, in apply_field_prefills 341 has_current_value = True 342 except (IndexError, KeyError, ValueError): > 343 pass 344 else: 345 try: locals: block = <BlockField 415 'Ajoutez des devis ou des factures'> cls = <class 'modules.formpage.AlternateFormPage'> current_value = None data = ... displayed_fields = [<TitleField 310 'Fond eau et assainissement'>, <StringField 264 'Numéro client'>, <StringField 296 'Fournisseur'>, <SubtitleField 312 "Demande d'aide curative">, <StringField 324 'Montant de la facture'>, <StringField 325 'Montant demandé'>, <StringField 300 'Participation du demandeur'>, <SubtitleField 317 'Pièces à fournir'>, <BlockField 415 'Ajoutez des devis ou des factures'>] field = <FileField bfe5a61b5d-bd69-4f5c-86b7-1441082b1c76 'Joindre un document'> field_key = '415$bfe5a61b5d-bd69-4f5c-86b7-1441082b1c76'
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Fichier 0001-misc-ignore-empty-block-field-when-looking-for-prefi.patch 0001-misc-ignore-empty-block-field-when-looking-for-prefi.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a plus de 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 6c89c0b8e6949cde943f00837786ace8d39bebd1 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Oct 16 17:03:17 2020 +0200 misc: ignore empty block field when looking for prefilled value (#47804)
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: ignore empty block field when looking for prefilled value (#47804)