Bug #88027
préremplissage d'un bloc avec {% block_value %} et un champ pointant une fiche qui n'existe pas (UnknownCardValueError: unknown card value ('bacs-jaunes-et-marron'))
Début:
12 mars 2024
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/122925/
UnknownCardValueError: unknown card value ('bacs-jaunes-et-marron') (22 additional frame(s) were not displayed) ... File "wcs/blocks.py", line 488, in set_value value = value.make_value(block=self.block, field=self.field, data={}) File "wcs/fields/block.py", line 88, in make_value rows_data = [make_row_data(x) for x in self.rows if x] File "wcs/fields/block.py", line 88, in <listcomp> rows_data = [make_row_data(x) for x in self.rows if x] File "wcs/fields/block.py", line 66, in make_row_data sub_value = sub_field.convert_value_from_anything(sub_value) File "wcs/fields/item.py", line 548, in convert_value_from_anything raise UnknownCardValueError(value)
Révisions associées
Historique
Mis à jour par Robot Gitea il y a environ 2 mois
- Statut changé de Nouveau à En cours
- Assigné à mis à Frédéric Péters
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/1254
- Titre : WIP: blocks: don't fail on creating a prefill block with unknown card (#88027)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/1254/files
Mis à jour par Robot Gitea il y a environ 2 mois
- 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 2 mois
- 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://git.entrouvert.org/entrouvert/wcs/pulls/1254
- Titre : blocks: don't fail on creating a prefill block with unknown card (#88027)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/1254/files
Mis à jour par Transition automatique il y a environ 2 mois
- Statut changé de Résolu (à déployer) à Solution déployée
blocks: don't fail on creating a prefill block with unknown card (#88027)