Toshi MARUYAMA
fce0c83c0a
remove trailing white-spaces from test/unit/query_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6770 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 05:49:17 +00:00
Jean-Philippe Lang
7f77744e86
Include issues asigned to user's groups when using "assigned to me" filter ( #2964 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-31 10:22:36 +00:00
Jean-Philippe Lang
9cebf65568
Fixed: pagination do not show total visible issue count ( #8633 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6314 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-24 16:48:26 +00:00
Jean-Philippe Lang
6c5b29bb68
More accurate date validation.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6265 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-11 14:36:43 +00:00
Jean-Philippe Lang
308a922d80
Validate date filters values.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6264 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-11 14:13:59 +00:00
Jean-Philippe Lang
c25a79a61b
Keep invalid values and add validation error message.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6229 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 18:34:49 +00:00
Jean-Philippe Lang
bedbb166b7
Reject non numeric values for numeric fields.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6228 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 18:19:21 +00:00
Jean-Philippe Lang
bf15b06d98
Fixes filters on float values.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6227 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 18:09:40 +00:00
Jean-Philippe Lang
4507aa5014
Adds date based filters ( #4729 ) and date range filter ( #6954 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6226 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 17:29:29 +00:00
Jean-Philippe Lang
932d4cdfea
Adds "between" operator for numeric filters ( #6180 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6217 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 08:00:25 +00:00
Jean-Philippe Lang
4a4a71349a
Fixes "less than", "greater than" filters on custom fields with postgres ( #6180 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6216 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-09 21:34:35 +00:00
Jean-Philippe Lang
d48ea90876
Makes custom queries available through the REST API ( #5737 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6186 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-06 16:57:04 +00:00
Jean-Philippe Lang
93fabf23ae
Fixes an assertion for postgresql ( #7097 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5603 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-29 13:33:15 +00:00
Jean-Philippe Lang
57f63d513c
Makes 'This week' filter work with any starting day of week ( #7097 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5596 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-29 11:28:27 +00:00
Jean-Philippe Lang
1242e448f3
Extract visibility condition from project statement and use visible scopes instead.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5442 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-12 16:53:39 +00:00
Jean-Philippe Lang
f357912d21
Fixed: SQL error when filtering issues with an empty group or role ( #7656 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4888 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-20 13:03:32 +00:00
Jean-Philippe Lang
703b0ec422
Fixed: 500 error on issue query grouped by a custom field that was deleted ( #7144 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-21 21:46:54 +00:00
Jean-Philippe Lang
8a8ca40364
Prevents n SQL queries (n = project count) on cross-project issues list.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4550 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-20 20:03:22 +00:00
Jean-Baptiste Barth
17f86d964f
Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 23:24:34 +00:00
Eric Davis
fef21d5aa2
Remember the selected "Member of Role" and "Member of Group" options. #6467
...
Contributed by Yuki Kita
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4260 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-16 00:00:23 +00:00
Eric Davis
e58513c976
Fix failing test.
...
See http://ci.finn.de/builds/1-8-7_redmine-trunk_postgres/4100
Contributed by Holger Just
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4106 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-20 02:55:32 +00:00
Eric Davis
41f8d043eb
Added a "Member of Role" to the issues filters. #5869
...
This filter will check an issue's assigned to field for users who have
(or don't have) a specific Role(s).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4078 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-10 19:44:45 +00:00
Eric Davis
109b42f482
Added a "Member of Group" to the issues filter. #5869
...
This filter will check an issue's assigned to field for users in (or not in)
specific groups.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4077 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-10 18:46:29 +00:00
Jean-Baptiste Barth
56a6d86af5
Added project filter when viewing all issues. #5084
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3927 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-08-08 09:01:25 +00:00
Jean-Baptiste Barth
0bcde4ab28
Fixed: assigned_to and author filters in cross project issues view should be based on user's project visibility. #5760
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3916 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-08-04 21:01:56 +00:00
Jean-Philippe Lang
2c8a24092b
Adds filter for system shared versions on the cross project issue list ( #4792 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3409 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-02-10 21:42:32 +00:00
Jean-Philippe Lang
5f8e9d7118
Version sharing ( #465 ) + optional inclusion of subprojects in the roadmap view ( #2666 ).
...
Each version of a project can be shared with:
* subprojects
* projects in the project hierarchy: ancestors + descendants (needs versions management permission on the root project)
* projects in the project tree: root project + all its descendants (same as above)
* all projects (can be set by admin users only)
Notes:
* when sharing a version of a private project with others projects, its name will be visible within the other projects
* a project with versions used by non descendant projects can not be archived
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3123 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-12-06 10:28:20 +00:00
Jean-Philippe Lang
346c569f98
Fixed: "None" category issue count is empty while grouping by category ( #4308 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3112 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-12-02 18:57:17 +00:00
Jean-Philippe Lang
99b52c8796
Rescue invalid query statement error with an error message.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3104 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-11-28 10:29:48 +00:00
Jean-Philippe Lang
4af8765f15
Reverts r3072 ( #4302 : error raised when sorting on an association not included as column).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3097 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-11-27 19:59:10 +00:00
Jean-Philippe Lang
d84bd8edd8
Optimize associations loading on the issue list.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3072 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-11-16 18:28:44 +00:00
Jean-Philippe Lang
71bc44a89d
Allow issue grouping by custom field ( #2679 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3071 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-11-16 18:07:30 +00:00
Eric Davis
7b0cb6aba8
Upgraded to Rails 2.3.4 ( #3597 )
...
* Ran the Rails upgrade
* Upgraded to Rails Engines 2.3.2
* Added a plugin to let Engines override application views.
* Converted tests to use the new classes:
** ActionController::TestCase for functional
** ActiveSupport::TestCase for units
* Converted ActiveRecord::Error message to a string.
* ActiveRecord grouping returns an ordered hash which doesn't have #sort!
* Updated the I18n storage_units format.
* Added some default initializers from a fresh rails app
* Changed the order of check_box_tags and hidden_field_tags. The hidden tag
needs to appear first in Rails 2.3, otherwise it will override any value in
the check_box_tag.
* Removed the custom handler for when the cookie store is tampered with.
Rails 2.3 removed the TamperedWithCookie exception and instead Rails will not
load the data from it when it's been tampered with (e.g. no user login).
* Fixed mail layouts, 2.3 has problems with implicit multipart emails that
use layouts. Also removed some custom Redmine mailer code.
* Fixed a bug that occurred in tests where the "required" span tag would be
added to the :field_status translation. This resulted in an email string of:
<li>Status<span class="required"> *</span><span class="required"> *</span>
Instead of:
<li>Status: New</li>
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2887 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-13 17:14:35 +00:00
Jean-Philippe Lang
a7bb63a182
Fixed: case sensitivity in issue subject filtering ( #3536 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2796 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-06-28 12:12:27 +00:00
Jean-Philippe Lang
7dccf9fda6
Allows multiple roles on the same project ( #706 ). Prerequisite for user groups feature.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2726 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-05-10 10:54:31 +00:00
Jean-Philippe Lang
c7c8dc71f2
Ability to save "sort order" in custom queries ( #2899 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2572 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-03-12 18:06:54 +00:00
Jean-Philippe Lang
e1b828de95
Adds ability to filter watched issues ( #846 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2456 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-12 17:35:57 +00:00
Jean-Philippe Lang
da01ee7c37
Ability to sort the issue list by text, int and float custom fields ( #1139 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2258 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-11 18:38:07 +00:00
Jean-Philippe Lang
3a28848ca0
Ability to sort the issue list by text, list, date and boolean custom fields ( #1139 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2257 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-11 16:33:51 +00:00
Jean-Philippe Lang
9e1192a54d
Fixed date filters accuracy with SQLite ( #2221 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2054 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-11-23 16:40:35 +00:00
Jean-Philippe Lang
6ddea3396b
Adds estimated hours to issue filters ( #1678 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1696 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-07-26 09:05:26 +00:00
Jean-Philippe Lang
0d5b03bab7
Add filters on cross-project issue list for custom fields marked as 'For all projects'.
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1576 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-06-22 15:35:11 +00:00
Jean-Philippe Lang
03f0236a6e
Prevents NoMethodError on @available_filters.has_key? in query.rb ( #1178 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1454 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-05-25 12:50:33 +00:00
Jean-Philippe Lang
5f58e2ced2
Fixed: Search for target version of "none" fails with postgres 8.3 ( #1134 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1379 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-04-29 09:57:47 +00:00
Jean-Philippe Lang
64474802f9
Fixes custom field filters behaviour ( #1078 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1362 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-04-26 16:55:24 +00:00
Jean-Philippe Lang
287d86e363
Queries can be marked as 'For all projects'. Such queries will be available on all projects and on the global issue list ( #897 , closes #671 ).
...
Only admin users can create/edit queries that are public and for all projects.
Note: this change does not allow to save a query from the global issue list. You have to be inside a project but then you can mark the query as 'For all projects'.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1311 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-03-30 12:29:07 +00:00
Jean-Philippe Lang
e5f5671d66
Added the ability to customize columns of a saved query.
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@782 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-10-01 08:44:17 +00:00
Jean-Philippe Lang
8da5bad295
Fixed: queries with multiple custom fields return no result.
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@668 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-08-26 12:29:53 +00:00