Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Fix incorrect sidebar conditions on 2-2-stable branch #156

Open
wants to merge 1 commit into
base: 2-2-stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/spree/static_content/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<% end -%>

<% content_for :sidebar do %>
<% if defined? @products && defined? @taxon %>
<% if @products & @taxon %>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not &&?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should be &&

<%= render :partial => "spree/shared/filters" %>
<% elsif defined? @taxonomies %>
<% elsif @taxonomies %>
<%= render :partial => "spree/shared/taxonomies" %>
<% end %>
<% end %>
Expand Down