From 1295d33fa7afec9d8f9f5ce65bffb6bb416d48ea Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Thu, 26 Dec 2019 16:16:54 +0000 Subject: [PATCH] Fix bug in frontoffice order details where the product image was a link to nowhere --- app/views/spree/orders/_bought.html.haml | 4 ++-- app/views/spree/orders/_summary.html.haml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/spree/orders/_bought.html.haml b/app/views/spree/orders/_bought.html.haml index fb66cd1525..e739caeff2 100644 --- a/app/views/spree/orders/_bought.html.haml +++ b/app/views/spree/orders/_bought.html.haml @@ -17,9 +17,9 @@ %div.item-thumb-image - if variant.images.length == 0 - = link_to mini_image(variant.product), variant.product + = mini_image(variant.product) - else - = link_to image_tag(variant.images.first.attachment.url(:mini)), variant.product + = image_tag(variant.images.first.attachment.url(:mini)) = render 'spree/shared/line_item_name', line_item: line_item %span.already-confirmed= t(:orders_bought_already_confirmed) diff --git a/app/views/spree/orders/_summary.html.haml b/app/views/spree/orders/_summary.html.haml index 02bc8d9fab..670a9b6ec7 100644 --- a/app/views/spree/orders/_summary.html.haml +++ b/app/views/spree/orders/_summary.html.haml @@ -17,9 +17,9 @@ %div.item-thumb-image{"data-hook" => "order_item_image"} - if item.variant.images.length == 0 - = link_to mini_image(item.variant.product), item.variant.product + = mini_image(item.variant.product) - else - = link_to image_tag(item.variant.images.first.attachment.url(:mini)), item.variant.product + = image_tag(item.variant.images.first.attachment.url(:mini)) = render 'spree/shared/line_item_name', line_item: item