spree/spree — Issue #1115: Deleting a product
Author: jacobtimm
Created: 2012-02-08 04:24:21+00:00
State: open

doesn't delete it from the product group it was assigned to, and when you try to "edit" it from the product group you get an error.

NoMethodError in Spree/admin/products#edit

Showing /Users/jacob/.rvm/gems/ruby-1.9.2-p290/bundler/gems/spree-5d49b19e7114/core/app/views/spree/admin/shared/_product_tabs.html.erb where line #5 raised:

undefined method `price' for nil:NilClass

Extracted source (around line #5):

2:
3: <% content_for :sidebar do %>
4:
5:

<%= @product.name %><%= @product.sku %>

6:

7:
8: