Project

General

Profile

Bug #90572

préremplissage d'un champ liste (sourcée sur des fiches) avec une liste (TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list')

Added by Sentry Io 10 days ago. Updated 1 day ago.

Status:
Solution validée
Priority:
Normal
Target version:
-
Start date:
14 May 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/126069/

il ne faudrait pas de crash ici, mais remonter l'erreur.

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
(22 additional frame(s) were not displayed)
...
  File "wcs/fields/item.py", line 347, in get_prefill_value
    struct_value = data_source.get_structured_value(value)
  File "wcs/data_sources.py", line 1115, in get_structured_value
    value = self.get_card_structured_value_by_id(option_id)
  File "wcs/data_sources.py", line 1099, in get_card_structured_value_by_id
    values = CardDef.get_data_source_items(self.type, get_by_id=option_id)
  File "wcs/carddef.py", line 258, in get_data_source_items
    criterias.append(carddef.get_by_id_criteria(get_by_id))
  File "wcs/formdef.py", line 899, in get_by_id_criteria
    if int(value) >= 2**31:

History

#1

Updated by Frédéric Péters (de retour le 27 mai) 10 days ago

  • Project changed from Suivi des traces to w.c.s.
  • Description updated (diff)
  • Assignee set to Frédéric Péters (de retour le 27 mai)
#2

Updated by Robot Gitea 10 days ago

  • Status changed from Nouveau to En cours

Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :

#3

Updated by Robot Gitea 10 days ago

  • Status changed from En cours to Solution proposée
#4

Updated by Robot Gitea 1 day ago

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

Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :

Also available in: Atom PDF