Bug #51117
filter_value vs champs de type email
Début:
15 février 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'TypeError'>', value = ''NoneType' object is not callable' Stack trace (most recent call first): ... locals: field = <EmailField 1 'Courriel'>
Fichiers
Révisions associées
misc: check converting any value is possible before trying it in filter (#51117)
Historique
Mis à jour par Frédéric Péters il y a environ 3 ans
- Fichier 0001-misc-check-converting-any-value-is-possible-before-t.patch 0001-misc-check-converting-any-value-is-possible-before-t.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
J'ai hésité à plutôt taper un convert_value_from_anything sur la classe Field de base mais je préfère être sur la prudence et juste toucher l'endroit concerné.
Mis à jour par Lauréline Guérin il y a environ 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a environ 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 19e07a88b18b1f2dab1c5f6f0e1a5f5d9fc18c92 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Mon Feb 15 12:28:43 2021 +0100 misc: check converting any value is possible before trying it in filter (#51117)
(et je vais le taper en hotfix)
Mis à jour par Frédéric Péters il y a environ 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
Mis à jour par Frédéric Péters il y a environ 3 ans
Déployé sur les prods ce matin. (curieux paquet hotfix qui a pris aussi des commits blacks pas dans la branche mais inoffensifs j'ai laissés).
misc: check converting any value is possible before trying it in filter (#51117)