Bug #71563
vue detail formdata, bloc de champs avec un display mais pas de value (TypeError: 'NoneType' object is not subscriptable)
Start date:
22 November 2022
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/97429/
TypeError: 'NoneType' object is not subscriptable (15 additional frame(s) were not displayed) ... File "wcs/forms/common.py", line 639, in status r += self.receipt(always_include_user=True, mine=False) File "wcs/backoffice/management.py", line 3026, in receipt r += super().receipt(*args, **kwargs) File "wcs/forms/common.py", line 511, in receipt r += self.display_fields(form_url=form_url) File "wcs/forms/common.py", line 583, in display_fields s = f.get_view_value( File "wcs/fields.py", line 3932, in get_view_value for i, row_value in enumerate(value['data']):
Files
Associated revisions
History
Updated by Lauréline Guérin 2 months ago
- Project changed from Suivi des traces to w.c.s.
- Subject changed from TypeError: 'NoneType' object is not subscriptable to vue detail formdata, bloc de champs avec un display mais pas de value (TypeError: 'NoneType' object is not subscriptable)
field.get_value_info a renvoyé:
{ field: <BlockField 145 'Adresse'>, value: 'foo bar', value_details: { value_id: None } }
Updated by Lauréline Guérin 2 months ago
- File 0001-fields-fix-BlockField.get_view_value-on-invalid-valu.patch 0001-fields-fix-BlockField.get_view_value-on-invalid-valu.patch added
- Status changed from Nouveau to Solution proposée
- Assignee set to Lauréline Guérin
- Patch proposed changed from No to Yes
Updated by Frédéric Péters 2 months ago
- Status changed from Solution proposée to Solution validée
Updated by Lauréline Guérin 2 months ago
- Status changed from Solution validée to Résolu (à déployer)
commit 76fada8e8cbf41a5ac4477de33dbc86cda590dd7 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Nov 22 10:44:39 2022 +0100 fields: fix BlockField.get_view_value on invalid value (#71563)
Updated by Transition automatique 2 months ago
- Status changed from Résolu (à déployer) to Solution déployée
fields: fix BlockField.get_view_value on invalid value (#71563)