Bug #47600
crash sur affichage des formulaires utilisant une fiche
Début:
13 octobre 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
En local, possible que ça soit à cause de données un peu amochées chez moi,
Exception: type = '<class 'AttributeError'>', value = ''NoneType' object has no attribute 'startswith'' Stack trace (most recent call first): File "/home/fred/src/eo/wcs/wcs/backoffice/cards.py", line 189, in is_used_in_formdef 187 if data_source.get('type') == data_source_id: 188 return True > 189 if data_source.get('type').startswith('%s:' % data_source_id): 190 # custom view 191 return True locals: data_source = {'value': 'http://plop'} data_source_id = 'carddef:contact' field = <ItemField 1 'liste'> formdef = <FormDef 'liste data source + local' id:318> self = <wcs.backoffice.cards.CardDefPage object at 0x7f4e2fb21610>
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Fichier 0001-backoffice-skip-un-typed-datasources-when-looking-fo.patch 0001-backoffice-skip-un-typed-datasources-when-looking-fo.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a plus de 3 ans
- Statut changé de Solution proposée à Solution validée
Je note quand même que pour ma part j'ai plus de facilité à lire « not x or not y » que « not (x and y) » mais c'est moi.
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 bcbaabf18115ebc2c5b8d2a98fcd3280a1f61996 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Tue Oct 13 09:50:56 2020 +0200 backoffice: skip un-typed datasources when looking for card usage (#47600)
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
backoffice: skip un-typed datasources when looking for card usage (#47600)