Toshi MARUYAMA
7ab18f6aa1
remove trailing white-spaces and redundant empty line from app/models/issue_query.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11726 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-19 07:18:38 +00:00
Jean-Philippe Lang
9b1ebd6808
Refactor: makes issue id a regular QueryColumn.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11447 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-23 10:53:21 +00:00
Jean-Philippe Lang
98cd140a19
Makes closed_on available as column and filter on the issue list ( #824 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11403 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-16 09:39:52 +00:00
Jean-Philippe Lang
0be82ea2c4
Refactor: use an ordered hash to store available filters and remove :order option ( #13154 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11372 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-14 20:37:17 +00:00
Jean-Philippe Lang
bf2613a02b
Code cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11291 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-30 21:31:13 +00:00
Jean-Philippe Lang
1e0a94de84
Fixe that filter "Assignee's group" doesn't work with group assignments ( #13006 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11285 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-29 17:59:20 +00:00
Jean-Philippe Lang
e396a0eebe
Copyright for 2013 ( #12788 ).
...
Patch by Daniel Felix.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-12 09:29:31 +00:00
Jean-Philippe Lang
9a66463ff8
Prevent sqlserver adapter from breaking the sub-query ( #12713 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11116 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-04 10:08:29 +00:00
Jean-Philippe Lang
a8083fb9a8
Pass the order option as an array to satisfy sqlserver adapter ( #12713 ).
...
Unlike other adapters, the sqlserver adapter processes the order option and wipes it when using functions.
Here we can see a "ASC" inserted in the COALESCE call:
irb(main):001:0> Issue.order("coalesce(estimated_hours, 0), id").to_sql
=> "SELECT [issues].* FROM [issues] ORDER BY coalesce(estimated_hours ASC, 0) ASC, id ASC"
This does not happen when passing the order SQL fragments separately.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11115 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-04 10:04:25 +00:00
Jean-Philippe Lang
d82159bcf5
Use joins instead of sub-queries in group by/sort by when using custom fields ( #12713 ).
...
Sub-queries in group by are not supported by SQLServer.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11102 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-03 12:28:50 +00:00
Jean-Philippe Lang
eb1829e739
Moves issue specific code to IssueQuery.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10965 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-09 14:44:28 +00:00
Jean-Philippe Lang
ab066317e6
Adds STI to Query model. Issue queries are now IssueQuery instances.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10964 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-09 14:10:49 +00:00