0001-workflows-don-t-crash-using-existing-file-attachment.patch
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 |
- |