Bug #74455
bloc de champs: erreur avec un prefill à None (TypeError: object of type 'NoneType' has no len())
Début:
13 février 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/106223/
TypeError: object of type 'NoneType' has no len() (7 additional frame(s) were not displayed) ... File "wcs/forms/root.py", line 1134, in _q_index return self.page(self.pages[0]) File "wcs/forms/root.py", line 618, in page had_prefill = self.apply_field_prefills( File "wcs/forms/root.py", line 515, in apply_field_prefills widget.set_value(v) File "wcs/blocks.py", line 400, in set_value super().set_value(value['data'] if value else None) File "wcs/qommon/form.py", line 1915, in set_value for dummy in range(len(value) - len(self.element_names)):
Révisions associées
Historique
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Nouveau à Solution proposée
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/106
- Titre : blocks: ignore prefills with invalid values (#74455)
- Modifications : https://gitea.entrouvert.org/entrouvert/wcs/pulls/106/files
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/106
- Titre : blocks: ignore prefills with invalid values (#74455)
- Modifications : https://gitea.entrouvert.org/entrouvert/wcs/pulls/106/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
blocks: ignore prefills with invalid values (#74455)