Commit 2cd9e2e5c6c1c6a108f261cb7d4d9bf070d0c6b4
Exists in
master
and in
20 other branches
Merge branch 'ai3277' into 'master'
Fix crash on article view SQL query http://noosfero.org/Development/ActionItem3277 See merge request !299
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/article.rb
... | ... | @@ -131,7 +131,7 @@ class Article < ActiveRecord::Base |
131 | 131 | |
132 | 132 | scope :by_range, lambda { |range| { |
133 | 133 | :conditions => [ |
134 | - 'published_at BETWEEN :start_date AND :end_date', { :start_date => range.first, :end_date => range.last } | |
134 | + 'articles.published_at BETWEEN :start_date AND :end_date', { :start_date => range.first, :end_date => range.last } | |
135 | 135 | ] |
136 | 136 | }} |
137 | 137 | ... | ... |