Jean-Philippe Lang
9636882c1e
Use #labelled_form_for instead of #labelled_tabular_form_for.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8141 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 18:15:55 +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
Toshi MARUYAMA
c585d224d8
replace tabs to spaces at app/views/issues/_form.html.erb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8123 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-08 07:30:03 +00:00
Toshi MARUYAMA
b1996b38b4
Rails3: view: html_safe for timelog/_date_range.html.erb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8122 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-07 23:54:10 +00:00
Toshi MARUYAMA
6d805cfca2
Rails3: helper: html_safe for render_flash_messages method at ApplicationHelper
...
Contributed by Sylvain Utard.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8121 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-07 23:53:20 +00:00
Jean-Philippe Lang
12077a4d44
Fixed that a cross-project custom query is not remembered inside project ( #9738 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8113 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-07 21:35:14 +00:00
Toshi MARUYAMA
fd32f7446d
code layout clean up app/views/gantts/show.html.erb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8111 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-07 03:54:45 +00:00
Jean-Philippe Lang
9333853f23
Removed the "more" link to edit additional properties of an issue ( #7603 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8102 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-06 20:15:22 +00:00
Jean-Philippe Lang
9cc1cb5281
Issue forms cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8101 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-06 18:02:10 +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
c562d79e4f
Parameter changed to issue_category in r7882 ( #9724 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8096 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-05 19:54:30 +00:00
Jean-Philippe Lang
e5bea933a8
Slight change to time report style.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8094 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-05 18:40:52 +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
b9e02477e9
Use Query.visible scope.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8086 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 23:05:11 +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
2cca4938cf
Removed open/closed percentage on the roadmap.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8075 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-04 17:44:12 +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
Jean-Philippe Lang
443bc4bf90
Fixed malformed HTML.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8061 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 18:21:56 +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
fd18c51938
Adds tests for plugin settings editing.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8039 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 10:06:41 +00:00
Jean-Philippe Lang
8bbb5d9686
Tests/cleanup VersionsController.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8038 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 09:12:51 +00:00
Toshi MARUYAMA
8066aa5eb1
Rails3: helper: html_safe for "format_activity_description" method
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8035 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 06:15:55 +00:00
Toshi MARUYAMA
10ae93826e
Rails3: view: html_safe for parents and children revisions
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8034 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 06:15:03 +00:00
Toshi MARUYAMA
3eb534818a
code layout clean up application helper "link_to_revision" method
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8033 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 06:14:19 +00:00
Jean-Philippe Lang
655dc18d71
Do not show warnings for disabled scm.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8031 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-02 22:21:18 +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
69a2431dd0
Dropped TimeEntryReportsController.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8027 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-02 19:33:05 +00:00
Jean-Philippe Lang
caf898d7d1
Extracted time report logic from the controller.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8026 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-02 18:46:43 +00:00
Toshi MARUYAMA
da140238e7
code layout clean up issues helper
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8025 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-02 11:36:40 +00:00
Toshi MARUYAMA
20f3dde0dd
Rails3: helper: html_safe for issues helper "show_detail" method
...
Contributed by Sernin van de Krol.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8024 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-02 11:35:54 +00:00
Toshi MARUYAMA
3d379c4d07
scm: git: mercurial: not show revision graph in sub directory ( #5501 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8022 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-01 23:41:03 +00:00
Jean-Philippe Lang
6475fe6474
Controller cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8021 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-01 21:16:44 +00:00
Jean-Philippe Lang
2967023a0e
Resourcified boards.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8020 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-01 21:14:09 +00:00
Jean-Philippe Lang
c3c2a4afe0
Resourcified documents.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8010 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-30 19:51:16 +00:00
Jean-Philippe Lang
1a28bd8e7e
Removed #find_project already defined as #find_project_by_project_id in parent class.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8009 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-30 19:08:06 +00:00
Jean-Philippe Lang
7a68ae27b0
Reverted r8007.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8008 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-30 19:02:40 +00:00