be090129 / substruct

Automatically exported from code.google.com/p/substruct
0 stars 0 forks source link

Wrong logic for product.display_price? #131

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. See the demo site, the prices are gone in the index.

What is the expected output? What do you see instead?
It should show them below the name. Nothing.

What version of the product are you using? On what operating system?
Trunk. Ubuntu 7.10

Please provide any additional information below.

In the product mode:

... 
def display_price?
  display_price.nil?
end
...

So, it will NOT display the price if the price is NOT nil?

I think it should be:

... 
def display_price?
  !display_price.nil?
end
...

Original issue reported on code.google.com by edmundo...@gmail.com on 2 Sep 2008 at 2:22