drhenner/ror_ecommerce — Issue #8: Default prperty throws error
Author: dancinglightning
Created: 2011-11-19 21:40:32+00:00
State: open

When creating a product no error was given when default property was left empty and when viewing the product i get

undefined method `property' for nil:NilClass
Extracted source (around line #38):

35: <%# variant.primary_property.each do |variant_property| %>
36:

38: <%= raw variant.primary_property.property.display_name %>: <%= raw variant.primary_property.description %>
39:

And when I go back to edit the property, I can not. It is not in the list.
PS: I only found this out by creating another product. ie it could say so on the screen (but off course the code should check)