Skip to content

Commit

Permalink
Solves issue #239
Browse files Browse the repository at this point in the history
  • Loading branch information
cleberjsantos committed Aug 3, 2013
1 parent 24f78f9 commit 3aeef44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collective/cover/tiles/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def get_configured_fields(self):
def thumbnail(self, item):
scales = item.restrictedTraverse('@@images')
try:
return scales.scale('image', 'mini')
scale = [i['scale'].split(' ')[0] for i in self.get_configured_fields() if i['id'] == 'image'][0]
return scales.scale('image', scale)
except:
return None

Expand Down

0 comments on commit 3aeef44

Please sign in to comment.