From f0c1d6d4c2eafe38f40a02e6dd3bb37d9bb2dcdf Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Fri, 8 Jul 2016 18:01:53 +0930 Subject: [PATCH] #997 Use the harvest photo lookup, not the harvest.crop one --- app/views/harvests/_thumbnail.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/harvests/_thumbnail.html.haml b/app/views/harvests/_thumbnail.html.haml index d21614947..7c5ada9c4 100644 --- a/app/views/harvests/_thumbnail.html.haml +++ b/app/views/harvests/_thumbnail.html.haml @@ -8,7 +8,7 @@ .panel-body .row .col-md-4 - = link_to image_tag((harvest.crop.default_photo ? harvest.crop.default_photo.thumbnail_url : 'placeholder_150.png'), :alt => harvest.crop.name, :class => 'img'), harvest.crop + = link_to image_tag((harvest.default_photo ? harvest.default_photo.thumbnail_url : 'placeholder_150.png'), :alt => harvest.crop.name, :class => 'img'), harvest.crop .col-md-8 %dl.dl-horizontal %dt Crop :