Bug #71988
formdata, filter internal-id error (TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType')
Start date:
03 December 2022
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/97670/
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' (22 additional frame(s) were not displayed) ... File "wcs/data_sources.py", line 369, in _get_structured_items return CardDef.get_data_source_items(data_source['type']) File "wcs/carddef.py", line 223, in get_data_source_items criterias.extend(custom_view.get_criterias(formdef=carddef, compile_templates=True)) File "wcs/custom_views.py", line 172, in get_criterias criterias = form_page.get_view_criterias( File "wcs/backoffice/management.py", line 1944, in get_view_criterias [int(v) for v in filter_field_value] File "wcs/backoffice/management.py", line 1944, in <listcomp> [int(v) for v in filter_field_value]
Files
Associated revisions
History
Updated by Lauréline Guérin 2 months ago
- Project changed from Suivi des traces to w.c.s.
- Assignee set to Lauréline Guérin
Updated by Lauréline Guérin 2 months ago
- File 0001-formdata-fix-internal-id-filter-with-None-in-values-.patch 0001-formdata-fix-internal-id-filter-with-None-in-values-.patch added
- Status changed from Nouveau to Solution proposée
- Patch proposed changed from No to Yes
Updated by Frédéric Péters about 2 months ago
- Status changed from Solution proposée to Solution validée
Updated by Lauréline Guérin about 2 months ago
- Status changed from Solution validée to Résolu (à déployer)
commit 3d5546e159e227508f15d1600f70d617a3e15434 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Dec 5 10:02:28 2022 +0100 formdata: fix internal-id filter with None in values list (#71988)
Updated by Transition automatique about 2 months ago
- Status changed from Résolu (à déployer) to Solution déployée
formdata: fix internal-id filter with None in values list (#71988)