Projet

Général

Profil

Development #45165

Trace sur un bloc de champs contenant un BoolField

Ajouté par Nicolas Roche il y a presque 4 ans. Mis à jour il y a presque 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
16 juillet 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Pour reproduire il faut avoir par exemple un bloc de champ avec une Case à cocher (choix unique),
utiliser ce bloc de champ dans un formulaire puis valider le formulaire.

Exception:
  type = '<class 'AttributeError'>', value = ''BlockSubWidget' object has no attribute 'add_hidden''

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/fields.py", line 938, in perform_more_widget_changes
   936             kwargs['disabled'] = 'disabled'
   937             value = get_request().get_field(self.field_key)
>  938             form.add_hidden(self.field_key, value=str(value))
   939             if value and not value == 'False':
   940                 self.field_key = 'f%sdisabled' % self.id

  locals: 
     edit = False
     form = <BlockSubWidget at 7f1756591748: f7$element0>
     kwargs = {'render_br': False, 'disabled': 'disabled'}
     self = <BoolField bf4697e7dc-edcb-4d91-a3dd-994ab2688de0 'Astreinte ?'>
     value = None


Fichiers

Révisions associées

Révision 2a7fe34e (diff)
Ajouté par Frédéric Péters il y a presque 4 ans

forms: add support for boolean fields in blocks (#45165)

Historique

#2

Mis à jour par Frédéric Péters il y a presque 4 ans

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

Mis à jour par Frédéric Péters il y a presque 4 ans

#4

Mis à jour par Nicolas Roche il y a presque 4 ans

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

Mis à jour par Frédéric Péters il y a presque 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 2a7fe34ed57af54d4b15c2bd96dc0c4561a34d1b
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Jul 17 13:27:24 2020 +0200

    forms: add support for boolean fields in blocks (#45165)
#6

Mis à jour par Frédéric Péters il y a presque 4 ans

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

Formats disponibles : Atom PDF