Bug #48504
filtre dynamique vs booléens
Début:
13 novembre 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'TypeError'>', value = 'argument of type 'bool' is not iterable' Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/qommon/template.py", line 523, in is_template_string 521 @classmethod 522 def is_template_string(cls, string): > 523 return string and ('{{' in string or '{%' in string or '[' in string) 524 525 locals: cls = <class 'wcs.qommon.template.Template'> string = True File "/usr/lib/python3/dist-packages/wcs/carddef.py", line 210, in get_data_source_items 208 criterias.extend(cls.get_data_source_criterias(carddef, custom_view)) 209 for criteria in criterias: > 210 if not Template.is_template_string(criteria.value): 211 continue 212 criteria.value = WorkflowStatusItem.compute(criteria.value)
Fichiers
Révisions associées
misc: check templates are strings (#48504)
Historique
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Fichier 0001-misc-check-templates-are-strings-48504.patch 0001-misc-check-templates-are-strings-48504.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Qui pourrait se retrouver en hotfix.
Mis à jour par Thomas Noël il y a plus de 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 08eb5dbdf1a414a436adf9eb863779decffaaa82 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Nov 13 08:31:03 2020 +0100 misc: check templates are strings (#48504)
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: check templates are strings (#48504)