Projet

Général

Profil

0001-workflows-don-t-crash-using-existing-file-attachment.patch

Frédéric Péters, 30 septembre 2020 13:50

Télécharger (1 ko)

Voir les différences:

Subject: [PATCH] workflows: don't crash using existing file attachment actions
 (#47174)

 wcs/wf/attachment.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/wf/attachment.py
115 115
            title = self.title or _('Upload File')
116 116
        else:
117 117
            title = None
118
        file_type = self.document_type.get('mimetypes')
118
        file_type = (self.document_type or {}).get('mimetypes')
119 119
        form.add(FileWithPreviewWidget, 'attachment%s' % self.id, title=title,
120 120
                    required=self.required, hint=self.hint, file_type=file_type,
121 121
                    max_file_size=self.max_file_size)
122
-