biddyweb / substruct

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

items marked as discontinued show up on all tags #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a product, add a tag to it
2. set it as discontinued
3. check all various tags

What is the expected output? What do you see instead?
it appears in all the tags--not just its own

it should be displayed only on the tags associated with [from the top menu]

This seems to fix it 
app/models/product.rb, top
[added parentheses]

  CONDITIONS_AVAILABLE = %Q/
      (CURRENT_DATE() >= DATE(items.date_available)
      AND items.is_discontinued = 0
      OR (items.is_discontinued = 1 AND (items.quantity > 0 OR
items.variation_quantity > 0)))
  /

Thanks!  

Original issue reported on code.google.com by rogerpack2005 on 10 Oct 2008 at 8:38

GoogleCodeExporter commented 9 years ago
Looks like this was already applied awhile back.

Original comment by subim...@gmail.com on 25 Jan 2009 at 3:17

GoogleCodeExporter commented 9 years ago
I got the latest source from the SVN and it seems that this fix has not been 
applied...

Original comment by mbejara...@gmail.com on 20 May 2009 at 4:53