Bug #48137
AttributeError: 'NoneType' object has no attribute 'add_fields_to_form'
Début:
30 octobre 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/6037/
AttributeError: 'NoneType' object has no attribute 'add_fields_to_form' (8 additional frame(s) were not displayed) ... File "wcs/admin/forms.py", line 1572, in _q_traverse return super()._q_traverse(path) File "quixote/directory.py", line 116, in _q_traverse return super(AccessControlled, self)._q_traverse(path) File "quixote/directory.py", line 88, in _q_traverse return obj._q_traverse(path) File "quixote/directory.py", line 92, in _q_traverse return obj() File "wcs/admin/forms.py", line 1469, in workflow_variables self.formdef.workflow.variables_formdef.add_fields_to_form(form,
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Assigné à mis à Frédéric Péters
URL https://.../backoffice/forms/101/workflow-variables accédée alors qu'il n'y a pas d'options exposées par le workflow.
Le lien n'est pas présenté
if pristine_workflow and pristine_workflow.variables_formdef: r += add_option_line('workflow-variables', _('Options'), '')
Je vais prendre l'option de juste retourner une 404 si le lien est suivi.
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Fichier 0001-admin-give-a-404-on-workflow-variables-page-when-the.patch 0001-admin-give-a-404-on-workflow-variables-page-when-the.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Lauréline Guérin 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 9996c96b5b3bb2b0708dadc64039273277df596b Author: Frédéric Péters <fpeters@entrouvert.com> Date: Mon Nov 2 16:15:57 2020 +0100 admin: give a 404 on workflow variables page when there aren't any (#48137)
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
admin: give a 404 on workflow variables page when there aren't any (#48137)