minint - seisin - fix nesting loop (#56194)
This commit is contained in:
parent
4c3553cd1e
commit
af40be21bf
|
@ -81,7 +81,8 @@ class ResourceView(DetailView):
|
|||
attachmentData.attachmentType = value.get('content_type')
|
||||
attachmentData.source = value['content']
|
||||
break
|
||||
else:
|
||||
|
||||
if not attachmentData.fileName:
|
||||
for name, value in fields.items():
|
||||
if isinstance(value, dict) and value.get('filename') and value.get('content'):
|
||||
attachmentData.fileName = '"%s"' % value['filename']
|
||||
|
|
Loading…
Reference in New Issue