Bug #10694
zapper l'action export_to_model quand un modèle n'a pas été défini
Début:
18 avril 2016
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Exception: type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'base_filename'' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/wf/export_to_model.py", line 211, in submit_form 209 in_backoffice = get_request() and get_request().is_in_backoffice() 210 if self.attach_to_history: > 211 filename = self.model_file.base_filename 212 content_type = self.model_file.content_type 213 if self.convert_to_pdf: locals: form = <wcs.qommon.form.Form object at 0x7fae4c66add0> evo = <wcs.formdata.Evolution object at 0x4203550> formdata = <Droit-D-Interpellation id:18> user = <SqlUser 'Steve G\xc3\xa9rard' id:12> in_backoffice = True self = <wcs.wf.export_to_model.ExportToModel object at 0x7fae4c9de950>
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 8 ans
- Statut changé de Nouveau à En cours
- Fichier 0001-workflows-don-t-perform-export-to-model-if-no-model-.patch 0001-workflows-don-t-perform-export-to-model-if-no-model-.patch ajouté
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 8 ans
- Statut changé de En cours à Résolu (à déployer)
commit 96951c971efb9846ff2bf8c26931820a4ec4f89e Author: Frédéric Péters <fpeters@entrouvert.com> Date: Mon Apr 18 17:30:55 2016 +0200 workflows: don't perform "export to model" if no model has been set (#10694)
workflows: don't perform "export to model" if no model has been set (#10694)