Project

General

Profile

Bug #71988

formdata, filter internal-id error (TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType')

Added by Sentry Io 2 months ago. Updated about 2 months ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
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

Revision 3d5546e1 (diff)
Added by Lauréline Guérin about 2 months ago

formdata: fix internal-id filter with None in values list (#71988)

History

#1

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
#2

Updated by Lauréline Guérin 2 months ago

#3

Updated by Frédéric Péters about 2 months ago

  • Status changed from Solution proposée to Solution validée
#4

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)
#5

Updated by Transition automatique about 2 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF