Jean-Philippe Lang
daab32923d
Adds pagination to admin project list.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15755 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-08-30 20:10:56 +00:00
Jean-Philippe Lang
b405a0be53
Disable "Select project modules" permission does not apply to the new project form ( #23470 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15752 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-08-30 19:32:52 +00:00
Jean-Philippe Lang
d5ca4a3593
Fixed that restricted custom permissions on for non member/anonymous does not work ( #23655 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15750 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-08-30 19:24:03 +00:00
Jean-Philippe Lang
57afa5345e
Don't pass conditions to #delete_all.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15675 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-16 10:30:45 +00:00
Jean-Philippe Lang
d2f7e31951
Use .distinct instead of .uniq.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15654 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 07:15:13 +00:00
Jean-Philippe Lang
83777f727a
Assignable users should not include users that cannot view the tracker ( #23172 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15586 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-28 20:31:08 +00:00
Jean-Philippe Lang
6cd84af522
Limits the tracker list in filters and issue counts ( #285 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15540 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-18 06:42:25 +00:00
Jean-Philippe Lang
10c22b5384
Preload principals.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15518 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-12 12:21:57 +00:00
Jean-Philippe Lang
ed50d42210
Replace Date.today with User.current.today ( #22320 ).
...
Depending on the offset between a user's configured timezone and the server
timezone, Date.today may be more or less often wrong from the user's
perspective, leading to things like issues marked as overdue too early or too
late, or yesterday / tomorrow being displayed / selected where 'today' is
intended.
A test case illustrating the problem with Issue#overdue? is included
Patch by Jens Kraemer.
git-svn-id: http://svn.redmine.org/redmine/trunk@15379 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-07 10:42:22 +00:00
Jean-Philippe Lang
cda9c63d9c
Updates copyright for 2016.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
3a52b08405
Use association instead of a manual JOIN ( #21583 ).
...
Patch by Ondřej.
git-svn-id: http://svn.redmine.org/redmine/trunk@15062 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-16 08:22:06 +00:00
Jean-Philippe Lang
328e076722
Don't show projects created more than 30 days ago in "Latest projects" ( #21148 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14854 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-11-08 21:31:18 +00:00
Jean-Philippe Lang
9178d4748f
Default target version for new issues ( #1828 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14786 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-11-01 08:11:36 +00:00
Jean-Philippe Lang
7d558120d3
Conditions cleanup.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14692 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-19 17:18:18 +00:00
Jean-Philippe Lang
64a80066bd
Error message when editing a child project without add project/subprojects permissions ( #20282 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14619 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-09-21 20:32:11 +00:00
Jean-Philippe Lang
aa096cb0cc
Project copy does not copy custom field settings ( #20360 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14618 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-09-20 20:25:16 +00:00
Jean-Philippe Lang
a28bf20c4c
Project copy does not update custom field of version type values ( #20361 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14615 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-09-20 12:50:06 +00:00
Jean-Philippe Lang
eb57fa4847
Fixed invalid search link on the new project form ( #20565 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14614 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-09-20 11:50:21 +00:00
Jean-Philippe Lang
671fce04de
Don't propose projects without trackers when editing an issue ( #20463 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14613 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-09-20 11:38:01 +00:00
Jean-Philippe Lang
b5af1cb235
Project.copy_from deletes enabled_modules on source ( #20512 ).
...
Fix by Ondřej Ezr.
git-svn-id: http://svn.redmine.org/redmine/trunk@14508 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-18 06:46:49 +00:00
Toshi MARUYAMA
918a412fd4
use String#casecmp for case insensitive comparison ( #20369 )
...
Contributed by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@14484 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-12 12:54:06 +00:00
Jean-Philippe Lang
1def32c4dd
Fixed that members without view issues permission are able to list issues on public projects if the non member role has the permission ( #20206 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14450 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-07-25 06:44:01 +00:00
Jean-Philippe Lang
3811ff5d95
Deprecates Project#member_principals.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-18 19:12:17 +00:00
Jean-Philippe Lang
48d40a8c88
Fixed that project activity without parent hides system activities and removed duplicated code.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14292 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-05-30 10:05:43 +00:00
Jean-Philippe Lang
9d3f3289b8
Memorize project override roles.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13934 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-24 08:54:04 +00:00
Jean-Philippe Lang
000124f44f
Copyright update.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-11 09:09:50 +00:00
Jean-Philippe Lang
576a13e99d
Option to search attachment filenames and description ( #4383 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-09 21:06:09 +00:00
Jean-Philippe Lang
8db1cdd6f1
Deprecates Project#set_allowed_parent!.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13849 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 22:33:25 +00:00
Jean-Philippe Lang
fd4a911304
Fixed that project copy triggers a 500 error if project validation fails.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13848 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 22:29:50 +00:00
Jean-Philippe Lang
5d2eea1489
Cleans up parent project assignment in ProjectsController.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13847 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 22:19:57 +00:00
Jean-Philippe Lang
ded15dfc80
Moved Project#hierarchy to NestedSet::Traversing.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13843 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 20:37:06 +00:00
Jean-Philippe Lang
1a851318fd
Replaces awesome_nested_set gem with a simple and more robust implementation of nested sets.
...
The concurrency tests added in this commit trigger dead locks and/or nested set inconsistency with awesome_nested_set.
git-svn-id: http://svn.redmine.org/redmine/trunk@13841 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-07 20:19:49 +00:00
Jean-Philippe Lang
15bb695bbb
Use logger.info? ( #18605 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13766 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-14 21:53:38 +00:00
Jean-Philippe Lang
e09f48e459
Skip some validations if attribute did not change.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13723 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-06 11:23:05 +00:00
Jean-Philippe Lang
1059f9a99e
Get version ids with a single query (was n+1).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13694 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-02 20:32:09 +00:00
Jean-Philippe Lang
22a9742216
Removed broken and unused method added in r5313.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13693 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-02 20:23:52 +00:00
Jean-Philippe Lang
49bd22255f
Use scope.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13692 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-02 20:23:20 +00:00
Jean-Philippe Lang
288c014aa7
Edit attachments after upload ( #1326 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13665 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-29 13:41:53 +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
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
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
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
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
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
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
7e7ac5340a
Adds buit-in groups to give specific permissions to anonymous and non members users per project ( #17976 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13417 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-09-28 14:51:08 +00:00
Jean-Philippe Lang
2a4fdf6755
WARNING: Can't mass-assign protected attributes: user_id, type.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-07-14 16:21:17 +00:00