* project filter added on query

* query validity check on issues list export

git-svn-id: http://redmine.rubyforge.org/svn/branches/work@94 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2006-12-16 12:31:19 +00:00
1 parent 7b0dca2d6d
commit e0ee6a17fc
2 files changed
+33 -24

No files matched your search

+1
View File
@@ -123,6 +123,7 @@ class Query < ActiveRecord::Base
def statement
sql = "1=1"
sql << " AND issues.project_id=%d" % project.id if project
filters.each_key do |field|
v = values_for field
next unless v and !v.empty?