[Git][noosfero/noosfero][master] 2 commits: Fix ambiguous field on query

Bráulio Bhavamitra gitlab at gitlab.com
Sun Jun 28 20:35:02 BRT 2015


Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero


Commits:
34402f44 by Braulio Bhavamitra at 2014-08-11T18:16:55Z
Fix ambiguous field on query

- - - - -
2cd9e2e5 by Bráulio Bhavamitra at 2015-06-28T23:34:36Z
Merge branch 'ai3277' into 'master'

Fix crash on article view SQL query

http://noosfero.org/Development/ActionItem3277

See merge request !299

- - - - -


1 changed file:

- app/models/article.rb


Changes:

=====================================
app/models/article.rb
=====================================
--- a/app/models/article.rb
+++ b/app/models/article.rb
@@ -131,7 +131,7 @@ class Article < ActiveRecord::Base
 
   scope :by_range, lambda { |range| {
     :conditions => [
-      'published_at BETWEEN :start_date AND :end_date', { :start_date => range.first, :end_date => range.last }
+      'articles.published_at BETWEEN :start_date AND :end_date', { :start_date => range.first, :end_date => range.last }
     ]
   }}
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/010e1ee54171523d6052e3f278174cc92808e4ba...2cd9e2e5c6c1c6a108f261cb7d4d9bf070d0c6b4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150628/6f44663c/attachment.html>


More information about the Noosfero-dev mailing list