Jean-Philippe Lang
9394d739b1
Deprecation warnings ( #12774 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11139 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-08 20:18:12 +00:00
Jean-Philippe Lang
8ee0b52d59
Gantt perf: fixed that Project#start_date and #due_date run way too much queries.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11135 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-06 14:03:49 +00:00
Jean-Philippe Lang
062b003deb
Generate project identifier automatically with JavaScript ( #9225 ).
...
Based on Jan Schulz-Hofen's patch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11129 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-06 11:41:37 +00:00
Toshi MARUYAMA
4bc2805c4a
remove trailing white-spaces from app/models/mail_handler.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11127 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-06 09:32:42 +00:00
Jean-Philippe Lang
45c93340b7
Negative estimated hours should not be valid ( #12735 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11125 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-05 16:34:41 +00:00
Jean-Philippe Lang
3e14c3017c
Adds a custom validator for dates ( #12736 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11124 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-05 16:09:15 +00:00
Jean-Philippe Lang
7c2490c6fc
Login link unexpected logs you out ( #12611 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11122 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-05 13:53:18 +00:00
Jean-Philippe Lang
d56f916a0e
Store the other issue in a variable ( #10916 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11121 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-05 13:23:33 +00:00
Jean-Philippe Lang
601148c5b1
Show precedes/follows and blocks/blocked relations on the Gantt diagram ( #3436 ).
...
Based on Toshi MARUYAMA's patch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11118 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-05 12:28:34 +00:00
Jean-Philippe Lang
9adb0c61a9
Make sure that dates are stored as YYYY-MM-DD in journal details ( #12713 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11117 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-04 15:38:52 +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
9613a13b10
Deprecates Version#*_pourcent in favour of #*_percent ( #12724 ).
...
Patch by Daniel Felix.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11113 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-04 08:30:25 +00:00
Toshi MARUYAMA
3bf6f8d7ff
remove trailing white-space from app/controllers/wiki_controller.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11110 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-04 01:11:33 +00:00
Jean-Philippe Lang
24ec41f7d4
A column has been specified more than once in the order by list ( #12713 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11106 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-03 13:40:50 +00:00
Jean-Philippe Lang
503933c585
Don't do any query if id is not present.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11105 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-03 13:39:04 +00:00
Jean-Philippe Lang
77f6b404fa
Make sure we don't cast an empty string to numeric ( #12713 ).
...
SQLServer evaluates the CAST condition even if the <> '' condition is false.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11103 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-03 13:33:16 +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
049eaeb776
Repository changesets are already sorted by committed_on DESC ( #12713 ).
...
SQLServer raises an error because committed_on is specified twice in the order by list.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11101 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-03 11:40:39 +00:00
Jean-Philippe Lang
8b08c1a534
Prevents position to be specified more than once in the order by list which is not supported by SQLServer ( #12713 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11100 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-03 11:37:07 +00:00
Jean-Philippe Lang
dd7d54b3a1
SQLServer: rule is a reserved keyword ( #12713 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11099 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-03 11:21:45 +00:00
Jean-Philippe Lang
0135dc504a
SQLServer: The size (60) given to the type 'decimal' exceeds the maximum allowed ( #12713 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11098 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-03 11:21:03 +00:00
Jean-Philippe Lang
64b98928c9
Typo in app/models/tracker.rb ( #12707 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11090 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-02 13:02:20 +00:00
Toshi MARUYAMA
758e07cd96
replace tabs to spaces at app/views/timelog/_form.html.erb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11086 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-27 03:09:56 +00:00
Jean-Philippe Lang
c87f36d20b
Log an error when trying to send an attachment that cannot be read.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11084 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-26 14:00:10 +00:00
Jean-Philippe Lang
6be315c1ff
Update the issue subject when choosing an issue from the drop down menu.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11083 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-26 13:12:38 +00:00
Jean-Philippe Lang
7606353ff9
Upgraded JQuery to 1.8.3 and JQuery UI to 1.9.2.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11081 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-26 11:47:51 +00:00
Jean-Philippe Lang
7b8ebb7e3f
Auto-populate fields while creating a new user with LDAP ( #10286 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11080 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-26 11:23:53 +00:00
Jean-Philippe Lang
eba4efc9d0
Missing labels on auth_source edit form.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11079 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-24 10:42:37 +00:00
Jean-Philippe Lang
b7d8913459
Code cleanup, use named routes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11078 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-23 16:10:07 +00:00
Jean-Philippe Lang
4ac43ab876
Code cleanup, use named routes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11077 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-23 15:55:57 +00:00
Jean-Philippe Lang
3ef7f5855e
Renamed #_issues_path to #_project_issues_path.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11076 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-23 15:19:57 +00:00
Jean-Philippe Lang
e921d70e53
Moved routes helper methods to an helper.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11075 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-23 15:18:39 +00:00
Jean-Philippe Lang
1528c719a4
Code cleanup, use named routes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11074 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-23 15:12:57 +00:00
Jean-Philippe Lang
8eea999ca6
Code cleanup, use named routes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11072 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-22 15:57:07 +00:00
Jean-Philippe Lang
ad246e81ad
Code cleanup, use named routes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11071 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-22 12:24:43 +00:00
Jean-Philippe Lang
a4f989a5e0
Code cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11070 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-22 10:57:01 +00:00
Jean-Philippe Lang
6c15812d96
Code cleanup, use named routes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11069 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-22 10:40:32 +00:00
Jean-Philippe Lang
bda9b98a56
Code cleanup, use named routes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11068 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-22 10:30:42 +00:00
Jean-Philippe Lang
cd437b7e1d
Code cleanup, use named routes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11067 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-22 10:00:00 +00:00
Jean-Philippe Lang
3976d5e740
Use #assert_select instead of #assert_tag.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11066 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-22 09:35:35 +00:00
Jean-Philippe Lang
94d9172634
Changed revision regexp to make source: links accept a branch.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11063 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-21 20:59:35 +00:00
Toshi MARUYAMA
b4aab7b375
remove trailing white-spaces from app/models/issue_relation.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11061 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-21 04:52:58 +00:00
Jean-Philippe Lang
42d3ec3a59
Display 25 items.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11028 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-17 18:24:06 +00:00
Jean-Philippe Lang
85fb937a4e
Use scoped models for pagination.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11027 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-17 18:23:30 +00:00
Jean-Philippe Lang
1cf379f370
Replaces the classic_pagination plugin with a simple pagination module.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11026 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-17 18:21:24 +00:00
Toshi MARUYAMA
dd26ac3038
code cleanup gantt_helper.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11021 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-17 07:14:26 +00:00
Jean-Philippe Lang
39e7bab2b9
Save the selected file just in case uploading stuff fails/is not supported.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11010 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-15 10:03:34 +00:00
Jean-Philippe Lang
7775f86a69
Code cleanup in AuthSource controller and views.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10996 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-13 15:04:11 +00:00
Jean-Philippe Lang
c31f498ba6
Code cleanup: implement Plugin#to_param for generating routes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10995 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-13 13:52:56 +00:00