Bug #80863
tests, can_user_add_cards, AttributeError: 'NoneType' object has no attribute 'get_roles'
Début:
04 septembre 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/113551/
AttributeError: 'NoneType' object has no attribute 'get_roles' (5 additional frame(s) were not displayed) ... File "wcs/testdef.py", line 247, in fill_page_fields self.run_widget_validation(field, value) File "wcs/testdef.py", line 280, in run_widget_validation widget = field.add_to_form(self.form) File "wcs/fields.py", line 894, in add_to_form self.perform_more_widget_changes(form, kwargs) File "wcs/fields.py", line 2437, in perform_more_widget_changes if carddef.can_user_add_cards(get_request().user): File "wcs/carddef.py", line 134, in can_user_add_cards for role in user.get_roles():
Révisions associées
Historique
Mis à jour par Robot Gitea il y a 8 mois
- Statut changé de Nouveau à Solution proposée
- Assigné à mis à Frédéric Péters
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/634
- Titre : cards: avoid crash in tests when using autocomplete widgets (#80863)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/634/files
Mis à jour par Robot Gitea il y a 8 mois
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 8 mois
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/634
- Titre : cards: avoid crash in tests when using autocomplete widgets (#80863)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/634/files
Mis à jour par Transition automatique il y a 8 mois
- Statut changé de Résolu (à déployer) à Solution déployée
cards: avoid crash in tests when using autocomplete widgets (#80863)