Development #45165
Trace sur un bloc de champs contenant un BoolField
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
Historique
Mis à jour par Frédéric Péters il y a presque 4 ans
- Fichier 0001-forms-add-support-for-boolean-fields-in-blocks-45165.patch 0001-forms-add-support-for-boolean-fields-in-blocks-45165.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Nicolas Roche il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
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)
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
forms: add support for boolean fields in blocks (#45165)