Commit Graph

1959 Commits

Author SHA1 Message Date
Jean-Philippe Lang
9b971925db Ignore bogus issue strings like [some-string#1234] in email subjects (#17705).
git-svn-id: http://svn.redmine.org/redmine/trunk@13593 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-14 20:43:15 +00:00
Jean-Philippe Lang
bdd3ccf8e5 Adds a role setting for controlling visibility of users: all or members of visible projects (#11724).
git-svn-id: http://svn.redmine.org/redmine/trunk@13584 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-11 13:08:52 +00:00
Jean-Philippe Lang
84d380c677 Prevents a status load in #status_was when status is not changed (#18290).
git-svn-id: http://svn.redmine.org/redmine/trunk@13577 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-08 11:17:45 +00:00
Jean-Philippe Lang
f095633f2f Prevents author load (#18290).
Patch by Ondřej Ezr.

git-svn-id: http://svn.redmine.org/redmine/trunk@13576 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-08 11:09:42 +00:00
Jean-Philippe Lang
13f9ccaed8 Adds configuration settings to limit valid repository path (#1415).
git-svn-id: http://svn.redmine.org/redmine/trunk@13573 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-08 10:52:59 +00:00
Jean-Philippe Lang
3a0a340bbd Preload users and projects for latest news on welcome page.
git-svn-id: http://svn.redmine.org/redmine/trunk@13566 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-06 18:54:23 +00:00
Jean-Philippe Lang
4d6c52a82b Use IssueRelation#to_s.
git-svn-id: http://svn.redmine.org/redmine/trunk@13565 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-05 16:33:45 +00:00
Jean-Philippe Lang
5326eb233e Overrides IssueRelation#to_s.
git-svn-id: http://svn.redmine.org/redmine/trunk@13563 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-05 16:14:20 +00:00
Jean-Philippe Lang
5052d48491 Fixed that setting a status as closed should update issue closed_on attribute (#18280).
git-svn-id: http://svn.redmine.org/redmine/trunk@13560 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-05 14:51:04 +00:00
Jean-Philippe Lang
bc3bd8aff2 Let QueryColumn accept a Proc as caption (#18276).
git-svn-id: http://svn.redmine.org/redmine/trunk@13558 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-04 21:00:59 +00:00
Jean-Philippe Lang
4cd67587ce Fixed that a disabled field which is required by workflow rules blocks issue creation/update (#17744).
git-svn-id: http://svn.redmine.org/redmine/trunk@13557 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-04 20:49:46 +00:00
Jean-Philippe Lang
4f4a019beb Moved controller code to new method Project#add_default_member.
git-svn-id: http://svn.redmine.org/redmine/trunk@13542 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-02 20:55:02 +00:00
Jean-Philippe Lang
f5e5822945 Adds a 'sorted' scope to Project.
git-svn-id: http://svn.redmine.org/redmine/trunk@13541 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-02 20:44:11 +00:00
Jean-Philippe Lang
dfc594c337 Default status per tracker (#5991).
git-svn-id: http://svn.redmine.org/redmine/trunk@13535 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-02 19:45:14 +00:00
Jean-Philippe Lang
32b79b6fd4 Fixed that IssueRelation should not be responsible for calling Issue#init_journal (#18237).
git-svn-id: http://svn.redmine.org/redmine/trunk@13534 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-02 15:38:11 +00:00
Jean-Philippe Lang
36ee95c1f4 Removed ORDER option on acts_as_tree that duplicates default_scope.
git-svn-id: http://svn.redmine.org/redmine/trunk@13528 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-30 08:01:19 +00:00
Jean-Philippe Lang
3ea84bd7e4 Fixed SQL errors with SQLServer (column specified more than once in the order by list) after r13526.
git-svn-id: http://svn.redmine.org/redmine/trunk@13527 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-29 22:30:25 +00:00
Jean-Philippe Lang
522bebe5ed Order scopes cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@13526 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-29 21:49:33 +00:00
Jean-Philippe Lang
47e74dc689 Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@13525 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-28 19:36:11 +00:00
Jean-Philippe Lang
65997d4ff8 Removed unused instance variable.
git-svn-id: http://svn.redmine.org/redmine/trunk@13524 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-28 18:50:25 +00:00
Jean-Philippe Lang
78f65df8f7 Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@13523 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-28 18:48:07 +00:00
Jean-Philippe Lang
abff0531de Code cleanup, removed raw SQL.
git-svn-id: http://svn.redmine.org/redmine/trunk@13522 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-28 18:43:11 +00:00
Jean-Philippe Lang
bdbfe4f7ba Query IssueStatus model to prevent workflows instanciation.
git-svn-id: http://svn.redmine.org/redmine/trunk@13516 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-26 22:35:04 +00:00
Jean-Philippe Lang
f33dfe9243 Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@13515 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-26 22:33:33 +00:00
Jean-Philippe Lang
05462a145f Prevents useless COUNT queries.
git-svn-id: http://svn.redmine.org/redmine/trunk@13514 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-26 22:20:10 +00:00
Jean-Philippe Lang
46d4d75ccd Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@13513 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-26 14:44:11 +00:00
Jean-Philippe Lang
5691826491 Clear @assignable_users on reload.
git-svn-id: http://svn.redmine.org/redmine/trunk@13510 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-25 11:14:57 +00:00
Jean-Philippe Lang
2d64a22dd9 Makes Project#assignable_users return a scope that prevents 2*n queries.
git-svn-id: http://svn.redmine.org/redmine/trunk@13509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-25 11:14:16 +00:00
Jean-Philippe Lang
c0f082ad02 Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@13508 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-25 09:35:17 +00:00
Jean-Philippe Lang
d62574badb Code cleanup, use safer #closed?
git-svn-id: http://svn.redmine.org/redmine/trunk@13505 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-24 21:40:26 +00:00
Jean-Philippe Lang
67c4936908 Restores commits reverted when rails-4.1 branch was merged (#18174).
Patch by Mischa The Evil.

git-svn-id: http://svn.redmine.org/redmine/trunk@13504 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-24 18:41:35 +00:00
Toshi MARUYAMA
6f92548b38 remove unneeded "references" of joins
"references" is needed for includes, but not needed for joins.

git-svn-id: http://svn.redmine.org/redmine/trunk@13501 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-24 02:18:45 +00:00
Toshi MARUYAMA
374f4dd52e use includes instead of joins at Issue#visible
"rake test" passes all test, but following test fails on command line.

<pre>
$ ruby test/unit/issue_test.rb -n test_visible_scope_for_member_with_groups_should_return_assigned_issues

  1) Failure:
IssueTest#test_visible_scope_for_member_with_groups_should_return_assigned_issues [test/unit/issue_test.rb:321]:
Failed assertion, no message given.
</pre>

git-svn-id: http://svn.redmine.org/redmine/trunk@13500 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-24 02:18:28 +00:00
Jean-Philippe Lang
c2e73160da Adds a single controller for users and groups memberships and support for adding multiple projects at once (#11702).
git-svn-id: http://svn.redmine.org/redmine/trunk@13498 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-23 21:46:40 +00:00
Jean-Philippe Lang
ca5946d82e Code cleanup: use #project_condition.
git-svn-id: http://svn.redmine.org/redmine/trunk@13497 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-23 17:23:02 +00:00
Jean-Philippe Lang
41d81a09b3 Use regular AR query instead of raw SQL.
git-svn-id: http://svn.redmine.org/redmine/trunk@13496 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-23 17:22:32 +00:00
Jean-Philippe Lang
94a491e0ca Replaced Board#topics with a regular method.
git-svn-id: http://svn.redmine.org/redmine/trunk@13491 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 19:40:55 +00:00
Jean-Philippe Lang
116eb8bcc7 Fixed an SQL error with SQLServer (#14534).
git-svn-id: http://svn.redmine.org/redmine/trunk@13490 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 19:34:00 +00:00
Jean-Philippe Lang
360895068e Code cleanup, use array instead of handcrafted update.
git-svn-id: http://svn.redmine.org/redmine/trunk@13485 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 18:51:00 +00:00
Jean-Philippe Lang
498a34403a Removed unneeded :foreign_key option on belongs_to associations.
git-svn-id: http://svn.redmine.org/redmine/trunk@13484 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 18:41:03 +00:00
Jean-Philippe Lang
0fc1906201 Removed deprecated stuff for Redmine 3.0.
git-svn-id: http://svn.redmine.org/redmine/trunk@13483 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 18:28:33 +00:00
Jean-Philippe Lang
2d1866d966 Merged rails-4.1 branch (#14534).
git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 17:37:16 +00:00
Jean-Philippe Lang
b01c740980 Fixed test failure with MySQL introduced by r13467.
git-svn-id: http://svn.redmine.org/redmine/trunk@13468 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-21 18:44:33 +00:00
Jean-Philippe Lang
51508f67d0 Fixed test failure with SQLServer introduced by r13461.
git-svn-id: http://svn.redmine.org/redmine/trunk@13467 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-21 17:47:18 +00:00
Jean-Philippe Lang
78120536b1 Fixed tests broken by r13461.
git-svn-id: http://svn.redmine.org/redmine/trunk@13466 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-20 21:47:43 +00:00
Jean-Philippe Lang
cac6ebb6c5 Code cleanup, removed raw SQL queries.
git-svn-id: http://svn.redmine.org/redmine/trunk@13461 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-20 19:16:09 +00:00
Toshi MARUYAMA
92f2ab6b70 use deep_dup to prevent losing mail receiving options (#14491)
git-svn-id: http://svn.redmine.org/redmine/trunk@13457 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-20 04:04:38 +00:00
Toshi MARUYAMA
6ac8507b3b MailHandler: Don't use String#respond_to?(:force_encoding) (#18047)
Contributed by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@13432 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-08 14:59:21 +00:00
Jean-Philippe Lang
a567546335 Don't link multiple changesets from the same commit multiple times (#17931).
git-svn-id: http://svn.redmine.org/redmine/trunk@13427 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-05 12:10:33 +00:00
Jean-Philippe Lang
15d5c331eb Let the new time_entry form be submitted without project (#17954).
git-svn-id: http://svn.redmine.org/redmine/trunk@13422 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-04 07:23:14 +00:00