Jean-Philippe Lang
b3c678da87
Extracted some code from #move_to_project to a callback.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8524 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-06 19:50:02 +00:00
Toshi MARUYAMA
206c7eca78
remove duplicate "private" from MailHandler model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8522 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-06 07:48:03 +00:00
Toshi MARUYAMA
16cb0ce1c9
remove redundant "email" parameter from MailHandler#create_user_from_email
...
"email" is defined as attr_reader.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8521 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-06 07:47:38 +00:00
Toshi MARUYAMA
f01dc24877
Rails3: replace deprecated Errors#on to Errors#[] at app/models/mail_handler.rb
...
On Rails2, Errors#[] returns single error if one error raises.
But, on Rails3, Errors#[] always returns the array.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8520 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-05 14:47:35 +00:00
Toshi MARUYAMA
0bd651330b
code layout clean up app/models/news.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8513 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-05 03:46:19 +00:00
Jean-Philippe Lang
bbe1ff3ec9
Faster query.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8487 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-03 18:10:03 +00:00
Toshi MARUYAMA
2ab7dba964
Rails3: model: mailer: use .to_s at redmine_headers method
...
On Rails 3.0:
<pre>
DEPRECATION WARNING: Using a non-String object for a header's value is deprecated.
You specified 15 (a Fixnum) for X-Redmine-Issue-Id.
</pre>
On Rails 3.1.3:
<pre>
Error:
test_message_posted_message_id(MailerTest):
NoMethodError: undefined method `index' for 1:Fixnum
test/unit/mailer_test.rb:226:in `test_message_posted_message_id'
</pre>
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8468 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-02 09:35:50 +00:00
Jean-Philippe Lang
1f6764e2af
Rails3 compat.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8459 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-01 17:58:14 +00:00
Jean-Philippe Lang
cd256fe89f
Order is already defined on attachments association.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8458 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-01 17:35:34 +00:00
Jean-Philippe Lang
852dee37ec
Do not add errors on attributes on fake attributes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8388 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-26 13:34:50 +00:00
Jean-Philippe Lang
a03432cbe6
Rails3 compatibility.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8383 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-26 12:22:03 +00:00
Jean-Philippe Lang
b20598d755
Use :joins instead of :include in calculations.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8382 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-26 12:07:07 +00:00
Jean-Philippe Lang
20ead6d8f7
Code cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8345 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 09:53:10 +00:00
Jean-Philippe Lang
8f23043851
Dup attributes instead of issue object.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8344 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 09:51:26 +00:00
Toshi MARUYAMA
16e8818d9e
remove trailing white-spaces from app/models/user.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8296 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-19 04:41:13 +00:00
Jean-Philippe Lang
f5987a5ca0
Use validation callback.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8293 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 15:48:06 +00:00
Jean-Philippe Lang
14ea087edc
Removed unused scope.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8292 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 15:04:34 +00:00
Jean-Philippe Lang
b7ceb3c333
Removed unused scope.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8291 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 15:04:08 +00:00
Jean-Philippe Lang
b8ce888d98
Use scoped method instead of merge_conditions.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8290 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 15:02:46 +00:00
Jean-Philippe Lang
9e83ee2ddf
Removed after_initialize methods.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8288 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 14:57:58 +00:00
Jean-Philippe Lang
062fbeae80
Makes models #initialize accept additional arguments.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8287 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 13:26:20 +00:00
Jean-Philippe Lang
5eed64b848
human_attribute_name accepts optional argument.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8286 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 13:20:19 +00:00
Jean-Philippe Lang
2a0257e8af
Use open scope in version issues count methods.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8285 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 13:05:46 +00:00
Jean-Philippe Lang
3717ff34af
Rails3.1 compatibility
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8275 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 08:21:29 +00:00
Toshi MARUYAMA
a36904c9ee
use same human_attribute_name logic with SCM models at group model ( #9795 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8237 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 13:07:32 +00:00
Jean-Philippe Lang
4f5e7d678e
Fixed: Unrelated error message when creating a group with an invalid name ( #9795 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 11:13:36 +00:00
Jean-Philippe Lang
b6e6f557f0
Display issue form fields according to permissions.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8227 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 10:41:49 +00:00
Jean-Philippe Lang
7c00a4a11f
Restores migration broken by r8182 and removes default scope on Role ( #9800 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8213 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 22:24:20 +00:00
Etienne Massip
7d2298f39c
Save an @Issue#save@.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8212 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 20:31:34 +00:00
Jean-Philippe Lang
cd0113a287
Code cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-13 19:56:33 +00:00
Jean-Philippe Lang
e1f885feda
Use safe_attributes for issue watchers assignment.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-13 19:50:44 +00:00
Toshi MARUYAMA
f1994ea9c0
Rails3: model: replace deprecated before_validation method at CustomField model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8191 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-11 12:04:54 +00:00
Jean-Philippe Lang
0471de41ff
Resourcified enumerations.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8189 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-11 10:26:12 +00:00
Jean-Philippe Lang
805c65f55d
Extracted new_subclass_instance method to a module.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8183 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 19:18:06 +00:00
Jean-Philippe Lang
532a76f78c
Resourcified roles.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 23:29:58 +00:00
Jean-Philippe Lang
b127f9157d
Resourcified custom fields.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8144 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 22:58:30 +00:00
Toshi MARUYAMA
312ffe43c7
Rails3: model: user: use ::Query instead of Query
...
Test fails on Rails 3.0.
<pre>
Error:
test_destroy_should_update_wiki_contents(UserTest):
NoMethodError: undefined method `delete_all' for ActiveRecord::AttributeMethods::Query:Module
app/models/user.rb:602:in `remove_references_before_destroy'
test/unit/user_test.rb:298:in `test_destroy_should_update_wiki_contents'
</pre>
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8140 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 12:08:58 +00:00
Jean-Philippe Lang
42d2bf0baf
Makes project and tracker assigned first in #attributes=
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8131 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 20:37:12 +00:00
Jean-Philippe Lang
3976e2d15d
Tests broken with ruby1.8.6 ( #9751 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8128 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 18:50:15 +00:00
Toshi MARUYAMA
aa127ebd4e
Rails3: model: Member: add virtual attribute to prevent error
...
On Rails 3.0, test fails with following error.
<pre>
Error:
test_validate(MemberTest):
NoMethodError: undefined method `role' for #<Member:0x7f73caf8cd08>
app/models/member.rb:87:in `validate_role'
test/unit/member_test.rb:76:in `test_validate'
</pre>
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8127 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 15:12:02 +00:00
Toshi MARUYAMA
15bb2fefa4
back out r8124
...
r8124 shows ":roles can't be empty".
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8125 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 13:37:27 +00:00
Toshi MARUYAMA
d9699adce5
Rails3: model: Member: errors must be set on existing attributes
...
On Rails 3.0, test fails with following error.
<pre>
Error:
test_validate(MemberTest):
NoMethodError: undefined method `role' for #<Member:0x7f73caf8cd08>
app/models/member.rb:87:in `validate_role'
test/unit/member_test.rb:76:in `test_validate'
</pre>
Contributed by Sylvain Utard.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8124 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 11:13:24 +00:00
Jean-Philippe Lang
5ca558f191
Fixed: error when filtering by numeric custom field with postgresql ( #9719 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8098 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-05 20:45:45 +00:00
Jean-Philippe Lang
afbdc51e01
Removed ARCondition.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8089 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 23:44:59 +00:00
Jean-Philippe Lang
0a92e382fa
Use scopes instead of ARCondition.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8087 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 23:36:47 +00:00
Jean-Philippe Lang
1050993348
Removed unnecessary calculations in time entries index.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8085 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 23:01:42 +00:00
Jean-Philippe Lang
9e5ed4208b
Adds named scopes for time entries index.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8084 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 22:49:46 +00:00
Jean-Philippe Lang
ff0f141126
Adds named scopes for projects index.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8082 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 22:31:02 +00:00
Jean-Philippe Lang
f52410be19
Adds named scopes for users index.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8081 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 22:24:33 +00:00
Jean-Philippe Lang
68149f8c73
Fixes spent time column sort for postgresql.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8077 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 19:13:09 +00:00
Jean-Philippe Lang
6d498a3c46
Makes spent time column available on the issue list ( #971 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8073 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 16:43:32 +00:00
Toshi MARUYAMA
bddd19c1e6
Rails3: model: replace deprecated validate method at watcher model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8072 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 09:45:18 +00:00
Toshi MARUYAMA
32ed138c53
Rails3: model: replace deprecated before_save method at UserPreference model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8070 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 06:44:39 +00:00
Toshi MARUYAMA
1de2c1c2af
Rails3: model: replace deprecated validate method at member_role model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8068 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 05:21:20 +00:00
Toshi MARUYAMA
997995397e
Rails3: model: replace deprecated before_destroy method at member model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8058 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 16:41:23 +00:00
Toshi MARUYAMA
23fd43374d
Rails3: model: replace deprecated validate method at member model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8047 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 14:33:49 +00:00
Jean-Philippe Lang
040cfa4ad5
Makes the link in an issue update notification point to the change ( #9690 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8030 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-02 21:00:42 +00:00
Jean-Philippe Lang
d92c204ed3
Fixed: version files in Files module cannot be downloaded if issue tracking is disabled ( #9055 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7984 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-29 19:36:49 +00:00
Jean-Philippe Lang
b8836d89b1
Removed deprecated methods.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-29 18:11:11 +00:00
Jean-Philippe Lang
b8a924e4e1
Adds #current_version? method to wiki content.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7972 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-28 20:12:03 +00:00
Jean-Philippe Lang
6076db74f1
Improved user creation from incoming email.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7952 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-27 15:27:14 +00:00
Jean-Philippe Lang
5a1fcf826f
Sort the issue list by author/assignee according to user display format ( #9669 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7938 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-26 17:37:20 +00:00
Toshi MARUYAMA
1dab1cd5cc
Ruby 1.9: fix encoding error on wiki diffs ( #4050 )
...
WikiDiff#to_html returns a string with ASCII encoding if
the WikiJournal content has been Zlib compressed because
Zlib::Inflate.inflate returns strings with ASCII encoding.
Forcing the encoding to be UTF8 fixes this bug.
Contributed by Moritz Breit.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7927 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-25 23:15:55 +00:00
Jean-Philippe Lang
6dab391932
Use user's time zone when logging time while editing ticket ( #9619 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7918 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-24 20:39:24 +00:00
Jean-Philippe Lang
902b3078d5
Limit the characters stripped by Attachment#sanitize_filename ( #4324 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7917 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-24 20:17:56 +00:00
Toshi MARUYAMA
564321b2d5
move logic to use latest image file attachment to class method for common use ( #3261 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7908 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-24 05:31:29 +00:00
Jean-Philippe Lang
3adc1c3192
Prevent clash with Rails 3 Query module.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7899 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-23 19:02:50 +00:00
Jean-Philippe Lang
3d23c42fc0
Do not use .merge_conditions.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7898 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-23 19:00:54 +00:00
Jean-Philippe Lang
2081730f42
Do not use instance variable.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7897 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-23 18:32:21 +00:00
Toshi MARUYAMA
9be9c5f565
fix inconsistent image filename extensions ( #9638 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7891 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-23 05:30:53 +00:00
Jean-Philippe Lang
34c73c7573
REST API for issue categories ( #9553 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7882 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 17:09:01 +00:00
Jean-Philippe Lang
e4cda67cf4
Fixed: Issue filter by assigned_to_role is not project specific ( #9540 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7847 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-19 15:11:20 +00:00
Jean-Philippe Lang
8ec1231dbc
Makes author column sortable and groupable on the issue list ( #1567 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7843 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-19 12:47:56 +00:00
Jean-Philippe Lang
12d05431c2
Adds a way to filter issues with or without start date ( #9607 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-19 11:25:36 +00:00
Jean-Philippe Lang
9ac86d4f4e
Wiki links for news and forums ( #9600 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7840 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-19 11:16:23 +00:00
Toshi MARUYAMA
9a93bd1484
move Changeset#to_utf8 logic to lib/redmine/codeset_util.rb for common use ( #3261 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7810 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-14 23:04:45 +00:00
Jean-Philippe Lang
f953426935
Replaced non standard Precedence email header with "X-Auto-Response-Suppress: OOF" ( #9534 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7805 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-13 16:30:35 +00:00
Jean-Philippe Lang
b170a40ed4
Adds a method to clear the settings cache.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7804 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-13 15:20:31 +00:00
Jean-Philippe Lang
3da92d7da7
Fixed: copied private queries not visible after project copy ( #9520 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7782 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-11 17:33:02 +00:00
Jean-Philippe Lang
981a6223e4
Custom date field accepts invalid dates ( #9394 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7779 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-11 13:22:57 +00:00
Jean-Philippe Lang
5b37920cce
Fixed: Custom 'version' field don't show shared versions ( #8615 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7772 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-11 12:32:21 +00:00
Jean-Philippe Lang
857cf5db38
Fixed: User with groups may not see issues assigned to him or to its groups ( #9478 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7771 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-11 12:22:47 +00:00
Toshi MARUYAMA
9e238171ca
scm: model: mercurial: set revision graph support true ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7718 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 08:12:47 +00:00
Toshi MARUYAMA
57afa111a9
scm: model: git: set revision graph support true ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7717 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 08:12:24 +00:00
Toshi MARUYAMA
15795c4385
scm: model: add method to switch revision graph support or not and set default false ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7716 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 08:12:01 +00:00
Toshi MARUYAMA
d10102e940
scm: mercurial: model: save parent/child relation for changesets ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7713 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 08:03:16 +00:00
Toshi MARUYAMA
f63dc936ad
scm: git: model: save parent/child relation for changesets ( #5501 )
...
Contributed by Jan Topiński.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7711 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 08:02:22 +00:00
Toshi MARUYAMA
ef1223dd3a
scm: db: model: add parent/child relation for changesets ( #5501 )
...
Contributed by Jan Topiński.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7710 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 08:01:41 +00:00
Toshi MARUYAMA
370de46974
scm: git: fix typo of comments about fetching revisions ( #9472 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7660 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-27 01:31:56 +00:00
Toshi MARUYAMA
01d3af65b3
scm: git: recovery and improve comments of fetching from 1.1 about harmful influence that git does not have the revision number ( #9472 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7658 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-27 00:35:43 +00:00
Toshi MARUYAMA
8dc7f1d1ee
scm: git: return saved revision at model "save_revision" ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7654 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-25 14:58:03 +00:00
Toshi MARUYAMA
55c98d4297
scm: git: use to_s for branches at model ( #5501 )
...
"scm.branches" will extend to have the revision for the branch.
no "to_s" will have a problem.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7653 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-25 14:57:34 +00:00
Etienne Massip
4eed0dca15
Reverted r7628.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7629 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-18 21:19:58 +00:00
Etienne Massip
33f65c5a48
Filter out illegal values to prevent raise of PostgreSQL exceptions, restored last test part removed with r7625 ( #8371 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7628 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-18 17:51:21 +00:00
Etienne Massip
a118c4ccb0
Fixed shot filter expression parsing depending upon field operators ( #8371 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7624 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-12 23:45:47 +00:00
Toshi MARUYAMA
54d553b27f
Rails3: model: replace deprecated errors.add_to_base at validate_issue_relation of IssueRelation
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7616 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-07 23:53:49 +00:00
Toshi MARUYAMA
d986a35a9b
Rails3: model: replace deprecated errors.add_to_base at validate_on_create of User
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7608 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-07 12:25:20 +00:00
Toshi MARUYAMA
7183530e7a
Rails3: model: replace deprecated errors.add_to_base at cannot_reply_to_locked_topic of Message
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7607 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-07 12:24:53 +00:00
Toshi MARUYAMA
a17fcac822
Rails3: model: query: parse dates using UTC (ruby 1.9 inside) ( #4796 )
...
On Rails 3.0 and Ruby 1.8.7 in Japan (UTC+9), tests fails with following messages.
test_operator_date_equals(QueryTest) [test/unit/query_test.rb:206]:
<"(issues.due_date > '2011-07-09 14:59:59.999999' AND issues.due_date <= '2011-07-10 14:59:59.999999')
AND (issue_statuses.is_closed='f')"> expected to be =~
</issues\.due_date > '2011-07-09 23:59:59(\.9+)?' AND issues\.due_date <= '2011-07-10 23:59:59(\.9+)?/>.
Contributed by Sylvain Utard.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7591 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-07 00:23:05 +00:00
Toshi MARUYAMA
41a6c8be65
Rails3: model: replace deprecated errors.add_to_base at validate_issue of Issue
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7590 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-06 22:49:26 +00:00
Toshi MARUYAMA
caa2ce3417
Rails3: model: replace deprecated errors.add_to_base at save_issue_with_child_records of Issue
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7589 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-06 22:49:02 +00:00
Toshi MARUYAMA
986f0acb00
fix typo of fix_issue() at Changeset model
...
Contributed by Sylvain Utard.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7571 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-04 09:05:54 +00:00
Etienne Massip
0aa63a13bc
Qualify searchable @text@ column to prevent exception thrown when :content association is not eargerly fetched by AR ( #9308 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7568 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-03 20:17:01 +00:00
Toshi MARUYAMA
049b35edb0
Rails3: model: replace deprecated 'validate_on_create' method at Message model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7555 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-01 01:11:39 +00:00
Etienne Massip
98e18b2141
Allow project column to be removed from the global issue list columns ( #8411 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7538 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-26 17:44:20 +00:00
Toshi MARUYAMA
ef962b84d7
Rails3: mail: rename app/views/mailer/*.text.html.rhtml to app/views/mailer/*.html.erb ( #6317 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7537 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-26 16:23:26 +00:00
Toshi MARUYAMA
a4c4edacfd
Rails3: mail: rename app/views/mailer/*.text.plain.rhtml to app/views/mailer/*.text.erb ( #6317 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7536 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-26 16:22:38 +00:00
Toshi MARUYAMA
c534c9e984
Rails3: mail: rename app/views/layouts/mailer.text.plain.erb to app/views/layouts/mailer.text.erb ( #6317 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7534 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-26 16:20:57 +00:00
Toshi MARUYAMA
52011f1582
replace RAILS_DEFAULT_LOGGER of mylogger() to Rails.logger at app/models/mailer.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7484 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 02:01:36 +00:00
Toshi MARUYAMA
4c389d4100
code layout clean up of reminder() at app/models/mailer.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7467 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-23 07:02:54 +00:00
Toshi MARUYAMA
cf7efe3f7d
code layout clean up of render_multipart() at app/models/mailer.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7466 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-23 06:59:39 +00:00
Toshi MARUYAMA
b89bf7eaf1
code layout clean up of account_activation_request() at app/models/mailer.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7465 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-23 06:56:24 +00:00
Toshi MARUYAMA
3505339007
code layout clean up of wiki_content_updated() at app/models/mailer.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7464 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-23 06:54:29 +00:00
Toshi MARUYAMA
e2a48eaa75
code layout clean up of wiki_content_added() at app/models/mailer.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7463 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-23 06:53:57 +00:00
Toshi MARUYAMA
4ac5a2c338
Rails3: model: replace deprecated 'after_destroy' method at Message model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7457 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-22 15:42:07 +00:00
Toshi MARUYAMA
c23052aa08
Rails3: model: replace deprecated 'after_update' method at Message model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7456 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-22 15:41:25 +00:00
Toshi MARUYAMA
4ffca69d84
Rails3: model: replace deprecated 'before_validation' method at TimeEntry model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7453 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-22 13:39:06 +00:00
Toshi MARUYAMA
e683bd7582
Rails3: model: replace deprecated 'validate' method at TimeEntry model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7448 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-22 12:06:33 +00:00
Toshi MARUYAMA
e16d20f1b4
Rails3: model: replace deprecated 'before_save' method at WikiPage model
...
unit wiki_redirect_test.rb has this test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7438 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-22 00:54:37 +00:00
Toshi MARUYAMA
ec1b9f38f3
Rails3: model: replace deprecated 'before_destroy' method at WikiPage model
...
test_redirects_removed_when_deleting_page at unit wiki_redirect_test.rb has this test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7437 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-22 00:53:53 +00:00
Toshi MARUYAMA
2d541a7e1b
Rails3: model: replace deprecated 'after_save' method at IssueStatus model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7436 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-21 23:50:52 +00:00
Toshi MARUYAMA
579acce9f6
Rails3: model: replace deprecated 'before_validation' method at Change model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7435 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-21 13:56:16 +00:00
Toshi MARUYAMA
7e017e6c2c
Rails3: model: replace deprecated 'validate' method at User model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7431 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-21 06:14:11 +00:00
Toshi MARUYAMA
97c7e84f49
Rails3: model: replace deprecated 'validate' method at Issue model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7429 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-21 06:12:35 +00:00
Toshi MARUYAMA
ca9c6bc254
Rails3: model: replace deprecated 'before_create' method at Token model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7428 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-21 05:16:19 +00:00
Toshi MARUYAMA
92403eb855
Rails3: model: replace deprecated 'before_save' method at Enumeration model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7427 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-21 04:50:58 +00:00
Toshi MARUYAMA
3268a190ae
Rails3: model: replace deprecated 'before_save' method at IssueRelation model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7426 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-21 04:50:07 +00:00
Toshi MARUYAMA
5c46cede2b
Rails3: replace deprecated 'validate' method at Query model
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7425 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 16:56:57 +00:00
Toshi MARUYAMA
86d6f2fe37
Rails3: replace deprecated 'validate' method at IssueRelation model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6937 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 00:43:42 +00:00
Toshi MARUYAMA
52dd8b56c9
Rails3: replace deprecated 'after_create' method at Message model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6936 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 00:43:03 +00:00
Toshi MARUYAMA
507192f167
Rails3: replace deprecated 'before_save' method at User model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6923 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 16:06:36 +00:00
Toshi MARUYAMA
17312e143c
Rails3: replace deprecated 'validate' method at CustomValue model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6914 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 14:13:40 +00:00
Toshi MARUYAMA
545c4fa6c9
Rails3: replace deprecated 'validate' method at CustomField model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6912 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 13:12:34 +00:00
Toshi MARUYAMA
e9e47673fa
remove trailing white-spaces from app/models/version.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6881 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 10:09:32 +00:00
Toshi MARUYAMA
876573c8a3
remove trailing white-spaces from app/models/version_custom_field.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 10:09:05 +00:00
Toshi MARUYAMA
dd03483c65
remove trailing white-spaces from app/models/workflow.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6879 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 10:08:39 +00:00
Toshi MARUYAMA
03cfa5c7a2
remove trailing white-spaces from app/models/journal_observer.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6878 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 08:48:10 +00:00
Toshi MARUYAMA
82797e2387
remove trailing white-spaces from app/models/mail_handler.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6877 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 08:47:44 +00:00
Toshi MARUYAMA
01b9ae926f
remove trailing white-spaces from app/models/news_observer.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6876 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 08:47:21 +00:00
Toshi MARUYAMA
9b340a1b6d
remove trailing white-spaces from app/models/principal.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6875 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 08:46:55 +00:00
Toshi MARUYAMA
5ed07bfe06
remove trailing white-spaces from app/models/issue_custom_field.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6874 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 08:46:27 +00:00
Toshi MARUYAMA
fc6eee6878
remove trailing white-spaces from app/models/issue_observer.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6873 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 08:45:59 +00:00
Toshi MARUYAMA
dbd5d2f54b
remove trailing white-spaces from app/models/group_custom_field.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6866 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 08:42:00 +00:00
Toshi MARUYAMA
3d525ec78b
remove trailing white-spaces from app/models/project_custom_field.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6858 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 07:06:26 +00:00
Toshi MARUYAMA
ebff04692b
remove trailing white-spaces from app/models/role.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6857 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 07:05:43 +00:00
Toshi MARUYAMA
9b7828cc86
remove trailing white-spaces from app/models/user_custom_field.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 07:05:03 +00:00
Toshi MARUYAMA
f58c2f87c2
remove trailing white-spaces from app/models/journal.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6855 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 07:04:22 +00:00
Toshi MARUYAMA
aa2caae09b
remove trailing white-spaces from app/models/issue_priority_custom_field.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6854 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 07:03:35 +00:00
Toshi MARUYAMA
db8e3b53f0
remove trailing white-spaces from app/models/issue_priority.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6853 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 07:02:49 +00:00
Toshi MARUYAMA
7be77e1d16
remove trailing white-spaces from app/models/board.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 06:08:51 +00:00
Toshi MARUYAMA
3b7720a41b
remove trailing white-spaces from app/models/comment.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6845 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 06:08:13 +00:00
Toshi MARUYAMA
d2f8ee2f10
remove trailing white-spaces from app/models/comment_observer.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6844 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 06:07:28 +00:00
Toshi MARUYAMA
17ec2a289f
Rails3: replace deprecated 'before_create' method at User model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6843 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 06:06:43 +00:00
Toshi MARUYAMA
ce24f4fb89
remove trailing white-spaces from app/models/group.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6842 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 06:06:04 +00:00
Toshi MARUYAMA
905677d08a
remove trailing white-spaces from app/models/auth_source.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 05:06:24 +00:00
Toshi MARUYAMA
1fda93a02f
remove trailing white-spaces from app/models/wiki.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 04:09:11 +00:00
Toshi MARUYAMA
7a6bfc4cc5
remove trailing white-spaces from app/models/wiki_content_observer.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6836 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 04:08:30 +00:00
Toshi MARUYAMA
91503ad4ea
remove trailing white-spaces from app/models/wiki_redirect.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6835 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 04:07:52 +00:00
Toshi MARUYAMA
73df51454b
Rails3: replace deprecated 'validate' method at WikiPage model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6834 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 04:07:15 +00:00
Toshi MARUYAMA
93b838c3f7
scm: remove before_save() because of duplicate at url=(arg) and root_url=(arg).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6828 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 16:01:56 +00:00
Toshi MARUYAMA
46fb8a8505
Rails3: replace deprecated 'after_destroy' method at Attachment model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6763 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 05:08:21 +00:00
Toshi MARUYAMA
9f5a6a2954
Rails3: replace deprecated 'before_save' method at Attachment model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6756 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-30 04:11:48 +00:00
Toshi MARUYAMA
bc169cf466
Rails3: replace deprecated 'before_create' to declared method at Changeset model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6744 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 14:03:11 +00:00
Toshi MARUYAMA
80c5f34c07
Rails3: replace deprecated 'after_create' to declared method at Repository model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6740 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 12:42:12 +00:00
Toshi MARUYAMA
38ba617f99
Rails3: replace deprecated 'validate_on_create' to declared validation method at Repository model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6717 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 05:48:11 +00:00
Toshi MARUYAMA
af7ec57f15
Rails3: replace deprecate 'validate' instance method to declared validation method at Attachment model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6714 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 02:32:18 +00:00
Toshi MARUYAMA
a0995cbafb
remove trailing white-spaces from app/models/time_entry_custom_field.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6708 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 01:07:13 +00:00
Toshi MARUYAMA
46581fafcc
remove trailing white-spaces from app/models/time_entry_activity_custom_field.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6707 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 01:06:42 +00:00
Toshi MARUYAMA
ffb951b50f
remove trailing white-spaces from app/models/time_entry_activity.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6706 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 01:06:15 +00:00
Toshi MARUYAMA
339f79b929
remove trailing white-spaces from app/models/journal_detail.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6527 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-22 13:31:08 +00:00
Toshi MARUYAMA
5a7c888df9
remove trailing white-spaces from app/models/attachment.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6526 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-22 13:30:33 +00:00
Toshi MARUYAMA
9bd9988d9b
remove trailing white-spaces from app/models/tracker.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6523 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-22 02:08:37 +00:00
Toshi MARUYAMA
62986f0c06
remove trailing white-spaces from app/models/issue_category.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6522 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-22 02:07:58 +00:00
Toshi MARUYAMA
44147ee8f2
remove trailing white-spaces from app/models/project.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6517 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 08:46:33 +00:00
Toshi MARUYAMA
b81c2f17b4
remove trailing white-spaces except SQL from app/models/issue.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6516 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 08:46:10 +00:00
Toshi MARUYAMA
aa84f622c7
remove trailing white-spaces from app/models/custom_value.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6514 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 04:45:20 +00:00
Toshi MARUYAMA
63bb5a38dd
remove trailing white-spaces from app/models/custom_field.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6513 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 04:44:35 +00:00
Toshi MARUYAMA
66a1504db6
remove trailing white-spaces from app/models/auth_source_ldap.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6512 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 04:43:55 +00:00
Toshi MARUYAMA
ff8af0ea2e
remove trailing white-spaces from app/models/wiki_page.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6511 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 02:00:35 +00:00
Toshi MARUYAMA
d8cb0855dc
remove trailing white-spaces from app/models/watcher.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6510 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:59:51 +00:00
Toshi MARUYAMA
a20b4c6b23
remove trailing white-spaces from app/models/user_preference.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:58:55 +00:00
Toshi MARUYAMA
04fe3babc1
remove trailing white-spaces from app/models/token.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6508 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:58:11 +00:00
Toshi MARUYAMA
e86f9711b9
remove trailing white-spaces from app/models/user.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6507 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:57:25 +00:00
Toshi MARUYAMA
33745d1972
remove trailing white-spaces from app/models/message.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6506 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:56:43 +00:00
Toshi MARUYAMA
65cc96e334
remove trailing white-spaces from app/models/issue_relation.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6505 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:56:03 +00:00
Toshi MARUYAMA
b335f1dc87
remove trailing white-spaces from app/models/issue_status.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6504 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:55:08 +00:00
Toshi MARUYAMA
67169fe9dd
remove trailing white-spaces from app/models/member.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6503 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:54:24 +00:00
Toshi MARUYAMA
a8c0583e5e
remove trailing white-spaces from app/models/member_role.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6502 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:53:41 +00:00
Toshi MARUYAMA
8be05afff8
remove trailing white-spaces from app/models/enumeration.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6501 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-21 01:14:40 +00:00
Toshi MARUYAMA
3605a18137
remove trailing white-spaces from app/models/query.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6465 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-20 03:38:29 +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
1317b99c3d
Fixes mail handler for when there's no attachments ( #8651 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6325 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-29 17:05:26 +00:00
Jean-Philippe Lang
4f4b3594db
Fixed: attachments from Apple Mail not added by mail handler ( #8651 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6324 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-29 17:01:29 +00:00
Jean-Philippe Lang
6db66f7183
Fixed: file uploads broken by r6312 ( #8912 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6320 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-29 15:28:59 +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
521eaa79cb
Ability to load relations on /issues API ( #7366 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6313 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-24 15:34:41 +00:00
Jean-Philippe Lang
49900051ea
Fixed: MailHandler does not include JournalDetail for attached files ( #7966 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6312 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-24 09:34:23 +00:00
Jean-Philippe Lang
2ce3191639
Assignee is removed on issue update if assignee account is locked ( #8884 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6308 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-23 19:24:02 +00:00
Jean-Philippe Lang
578fdc62f2
Ability to assign issues to groups ( #2964 ).
...
Option is disabled by default. It can be turned on in application settings.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6306 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-23 18:18:13 +00:00
Jean-Philippe Lang
18103cafbc
Refactor: extract specific filter statements to methods.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6301 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-20 17:44:10 +00:00
Jean-Philippe Lang
5f79a6a190
Fixed: additional workflow transitions not available when set to both author and assignee ( #8836 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6300 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-20 17:05:17 +00:00
Jean-Philippe Lang
cf56698d91
Refactor builtin roles creation.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6299 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-20 16:34:55 +00:00
Jean-Philippe Lang
4f92276654
Validate custom field regexp ( #8865 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6298 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-20 16:29:34 +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
c6da451621
Typo.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6258 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-11 11:38:46 +00:00
Jean-Philippe Lang
73236e5b41
Fixes "=" filter on float values.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6256 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-11 11:35:53 +00:00
Toshi MARUYAMA
c2e9e2cf56
scm: mercurial: do nothing in fetching if info is nil ( #8777 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6246 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-11 00:56:09 +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
Toshi MARUYAMA
ed37d8ed91
scm: git: catch exception in model default_branch() ( #8458 , #6713 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6220 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 11:08:00 +00:00
Toshi MARUYAMA
7dcdd2f171
scm: mercurial: remove return value from model fetch_changesets().
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6219 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-10 11:07:37 +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
0bd5e22c81
Numeric operators for custom fields in query filters ( #6180 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6213 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-09 20:30:51 +00:00
Jean-Philippe Lang
b0728550a3
Fixed: Wiki annotated page does not display author of version 1 ( #8449 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6206 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-09 12:01:08 +00:00
Jean-Philippe Lang
3c2ebd7aa2
Adds visibility condition on parent project in API.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6204 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-09 11:41:04 +00:00
Jean-Philippe Lang
2072669769
Fixed: Setting issue attributes from mail should be case-insensitive ( #8759 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6199 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-09 10:50:42 +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
42f9dc7d2c
Makes relations resource shallow ( #7366 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6184 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-05 16:47:34 +00:00
Jean-Philippe Lang
79f25c08f8
Document why relation is reversed after validation.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6178 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-04 17:31:06 +00:00
Jean-Philippe Lang
ea06b3cca5
Set a default value for relation type.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6177 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-04 17:29:33 +00:00
Jean-Philippe Lang
21b3718744
Adds REST API for issue relations ( #7366 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6176 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-04 17:03:04 +00:00
Jean-Philippe Lang
f2af44b6fe
Do not show 2 validation errors when user mail is blank.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6168 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-03 12:37:57 +00:00
Jean-Philippe Lang
8914d323ee
Fixed: private queries should not be accessible to other users ( #8729 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6163 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-03 11:01:08 +00:00
Jean-Philippe Lang
66f026aa78
Normalize issue description EOLs do prevent false journal details ( #8712 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6149 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-02 11:42:46 +00:00
Jean-Philippe Lang
0a9bf389ef
Fixed: Workflow copy does not copy advanced workflow settings ( #8739 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6148 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-02 11:13:39 +00:00
Jean-Philippe Lang
d0d807caf1
Do not journalize blank description changes ( #8712 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6147 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-02 11:05:27 +00:00
Toshi MARUYAMA
5cfc42982b
scm: return nil at model default_branch and override at git model ( #8458 , #6713 ).
...
Redmine Git and Mercurial adapter support *branches*.
Mercurial default branch is *dafault*.
But, it is popular to show all revisions on the top page for Mercurial GUI.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6130 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-30 03:46:32 +00:00
Jean-Baptiste Barth
f982c5b90d
Fixed circular dependencies possibly introduced when using reverse relations, for instance "blocked by" relations ( #8616 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6124 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-26 12:47:15 +00:00
Jean-Baptiste Barth
88bd76b0e4
Added Project#enable_module! and Project#disable_module! ( #7115 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6098 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-19 23:45:22 +00:00
Toshi MARUYAMA
c3b4722c2a
replace RAILS_ROOT to Rails.root in setting model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6076 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-16 01:52:45 +00:00
Toshi MARUYAMA
5500defd0d
replace RAILS_ROOT to Rails.root of attachments storage path.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6074 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-15 23:39:37 +00:00
Toshi MARUYAMA
8427048d5d
scm: fix JRuby tests fail in unit changeset following test.
...
* test_invalid_utf8_sequences_in_comments_should_be_replaced_ja_jis
* test_invalid_utf8_sequences_in_comments_should_be_replaced_latin1
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6020 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-09 01:29:22 +00:00
Toshi MARUYAMA
ee2236f5bd
scm: catch all exceptions to get scm command version in repository model ( #8510 ).
...
If scm command does not exist,
Linux jruby 1.6.2 (ruby-1.8.7-p330) raises java.io.IOException in production environment.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5999 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-03 09:54:57 +00:00
Jean-Philippe Lang
bf137818bb
Fixed: activity shows updates of private issues ( #8432 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5944 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-29 07:12:38 +00:00
Toshi MARUYAMA
a267babfe8
scm: mercurial: code clean up model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5931 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-26 10:12:00 +00:00
Toshi MARUYAMA
adbe6af44a
scm: mercurial: use regexp %r{} instead of // in model latest_changesets_cond().
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5930 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-26 10:11:31 +00:00
Toshi MARUYAMA
fa94e86d43
scm: add exception of fetching revisions error in repository model ( #5357 , #2799 , #4741 , #8030 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5899 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-25 11:33:36 +00:00
Toshi MARUYAMA
f1f4362b50
scm: git: brush up model fetch_changesets() comment.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5858 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-19 22:58:38 +00:00
Toshi MARUYAMA
fe7e8fa590
scm: git: use hash#dup for extra_info in model fetch_changesets().
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-19 02:38:14 +00:00
Toshi MARUYAMA
098655dbd0
scm: git: set revisions ordering inconsistent in existing database ( #5357 ).
...
Between version 0.9 r2840 (#1406 ) and version 1.2 r5073 (#7821 , #5357 ),
git revisions are stored as *C-B-A-F-E-D* in database.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5853 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-19 02:16:27 +00:00
Toshi MARUYAMA
04b1c974fb
remove trailing white-spaces from document observer model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5842 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-18 07:52:48 +00:00
Toshi MARUYAMA
b86fe9a604
remove trailing white-spaces from enabled module source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-18 07:52:23 +00:00
Toshi MARUYAMA
1150917358
remove trailing white-spaces and an empty line from document category custom field model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5840 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-18 07:51:51 +00:00
Toshi MARUYAMA
966390148f
remove trailing white-spaces from document category model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5839 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-18 07:51:15 +00:00
Toshi MARUYAMA
6eaf34c214
scm: bazaar: code clean up model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5834 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-18 07:11:41 +00:00
Toshi MARUYAMA
c5554dd65e
remove trailing white-spaces from setting model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5828 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-18 02:19:08 +00:00
Toshi MARUYAMA
22e80f04ae
remove trailing white-spaces from query model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5822 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-17 04:33:19 +00:00
Toshi MARUYAMA
6f8e3c031f
remove trailing white-spaces from time entry model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5820 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-17 03:58:41 +00:00
Toshi MARUYAMA
32cb715db9
remove trailing white-spaces from news model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5819 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-17 03:58:19 +00:00
Toshi MARUYAMA
da5140b1ac
remove trailing white-spaces from message observer model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5818 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-17 03:57:57 +00:00
Toshi MARUYAMA
c810b9db9c
remove trailing white-spaces from message model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5817 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-17 03:57:34 +00:00
Toshi MARUYAMA
01c5311662
remove trailing white-spaces from mailer model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5816 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-17 03:57:10 +00:00
Toshi MARUYAMA
f2e5b62448
remove trailing white-spaces from mail handler model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5815 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-17 03:56:45 +00:00
Toshi MARUYAMA
42a367b258
remove trailing white-spaces excluding SQL from issue model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5810 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-17 02:14:06 +00:00
Toshi MARUYAMA
97abb12aeb
remove trailing white-spaces from WikiContent model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5795 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-16 00:00:26 +00:00
Toshi MARUYAMA
674a61dc8e
remove trailing white-spaces from Document model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5794 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-15 23:52:48 +00:00
Toshi MARUYAMA
b829acfb4a
remove trailing white-spaces from Attachment model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5793 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-15 23:45:13 +00:00
Toshi MARUYAMA
0f245c0e56
remove trailing white-spaces from changeset model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5792 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-15 23:01:21 +00:00
Toshi MARUYAMA
7ca5a4939e
scm: git: fix fetching 7 days problem ( #7146 , #6013 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5788 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-13 10:38:45 +00:00
Toshi MARUYAMA
d65c3d438d
scm: git: show only filename and filesize if setting of reporting last commit is disable ( #8365 , #7047 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5775 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-13 03:55:21 +00:00
Toshi MARUYAMA
d21b35d32a
scm: git: get "extra_report_last_commit" value from extra_info ( #8365 , #7047 ).
...
Browsing repository tree performance problem is git only.
So, adding new "report_last_commit" column is very expensive.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5768 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-13 03:51:14 +00:00
Toshi MARUYAMA
4ee79a60ef
scm: add a repository model method "merge_extra_info()" to merge "extra_info" serializing hash yaml ( #7146 , #7047 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5766 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-12 23:58:38 +00:00
Toshi MARUYAMA
30aecd5e25
scm: add "extra_info" column to repositories table and set serialize ( #7146 , #7047 ).
...
This column is for specific SCM.
Git 7 days problem (#7146 ) can not resolve unless storing branches info in database.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5762 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-12 17:29:18 +00:00
Toshi MARUYAMA
1a947a1617
scm: mercurial: remove trailing white-spaces from model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5756 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-12 07:52:14 +00:00
Toshi MARUYAMA
9c09b74dff
scm: darcs: code clean up model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5755 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-12 07:41:29 +00:00
Toshi MARUYAMA
b5130b17a0
scm: filesystem: code clean up model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5754 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-12 07:41:08 +00:00
Toshi MARUYAMA
fa5f4ff77a
scm: subversion: code clean up model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5753 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-12 07:16:20 +00:00
Toshi MARUYAMA
850059d0cf
scm: bazaar: code clean up model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5752 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-12 07:16:00 +00:00
Toshi MARUYAMA
6520d484bf
scm: subversion: code clean up model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5751 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-12 07:15:39 +00:00
Toshi MARUYAMA
cddc5f70a3
scm: git: code clean up model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5750 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-12 07:06:57 +00:00
Toshi MARUYAMA
e28ac7f880
remove trailing white-spaces from MailHandler model source.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5710 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-08 21:28:54 +00:00
Toshi MARUYAMA
773b248669
scm: git: change model report_last_commit() name to extra_report_last_commit() ( #7047 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5661 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-06 03:43:11 +00:00
Toshi MARUYAMA
114e3f3b82
scm: git: use the model value of whether reporting last commit in repository tree ( #7047 ).
...
And remove entries_git() and the flag in adapter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5657 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-05 11:43:29 +00:00
Toshi MARUYAMA
03fb61a782
scm: git: add the model method whether reporting last commit in repository tree ( #7047 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5656 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-05 11:43:09 +00:00
Toshi MARUYAMA
12f4b8b6d9
scm: git: override entries() in model for browsing tree performance ( #7047 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5655 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-05 11:42:46 +00:00
Toshi MARUYAMA
fbdbdf96fe
scm: code clean up repository model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5653 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-05 07:30:22 +00:00
Toshi MARUYAMA
9c3a9fdd87
scm: git: fix indent in model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5652 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-05 06:13:23 +00:00
Toshi MARUYAMA
86d9ea32db
scm: code clean up repository model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5647 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-05 01:30:24 +00:00
Toshi MARUYAMA
2336093739
scm: git: add comments of revision order in fetch_changesets().
...
Related issues.
#5357 , #6013 , #7146 , #4773 , #4547 , #1406 , #3449 , #3567 .
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5644 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-04 23:38:11 +00:00
Toshi MARUYAMA
a7c178f6a6
scm: git: rearrange fetch_changesets() comment.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5643 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-04 23:36:57 +00:00
Toshi MARUYAMA
19c6266a7d
scm: git: refactor saving a revision in model.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5624 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-04 03:44:10 +00:00
Jean-Philippe Lang
fdb0151869
Fixed: notes are lost when copying issue(s) ( #6901 , #8239 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5602 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-29 13:27:50 +00:00
Jean-Philippe Lang
88a93d7e10
Fixed: copying an issue keeps the author of the original issue ( #6901 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5601 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-29 12:41:07 +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
Toshi MARUYAMA
7e77d5ddf9
scm: cvs: use i18n string at 'CVSROOT' and 'Module' setting.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5535 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-23 07:40:23 +00:00
Toshi MARUYAMA
25d6ed38b6
scm: filesystem: use i18n string at 'Root directory' setting.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5532 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-23 07:38:32 +00:00
Toshi MARUYAMA
36eac0dc8d
scm: use i18n string at 'Path to repository' setting in Mercurial, Git, Bazaar and Darcs.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5529 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-23 07:37:03 +00:00
Toshi MARUYAMA
82d5de4b4e
scm: mercurial: change "url" human attribute name from "Root directory" to "Path to repository".
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5528 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-23 04:41:26 +00:00
Toshi MARUYAMA
8696835b42
scm: darcs: change "url" human attribute name from "Root directory" to "Path to repository".
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5527 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-23 04:40:45 +00:00
Toshi MARUYAMA
7ad046f53d
scm: bazaar: change "url" human attribute name from "Root directory" to "Path to repository".
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5526 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-23 04:40:04 +00:00
Toshi MARUYAMA
bb929f4f75
scm: use i18n string at commit log encoding setting ( #1735 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5519 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-23 03:34:43 +00:00
Toshi MARUYAMA
2dc0875a72
scm: cvs: fix mistake human attribute names of root_url and url.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5516 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-23 00:25:32 +00:00
Toshi MARUYAMA
c80fe134f5
scm: darcs: set supports_directory_revisions true at model ( #7984 ).
...
Darcs adapter saves directory changes in database.
So, Redmine 1.1 shows latest changesets in sub directory.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5478 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-17 06:28:16 +00:00
Toshi MARUYAMA
5512e397ee
scm: prevent PostgreSQL or Ruby 1.9 errors if paths is invalid UTF-8.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5475 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 06:44:35 +00:00
Jean-Philippe Lang
f16cddd57a
Private issues ( #7414 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5466 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-15 13:23:13 +00:00
Jean-Philippe Lang
80e2eed702
Code cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5459 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-14 17:49:20 +00:00