Commit Graph

343 Commits

Author SHA1 Message Date
Marius Balteanu
96d32a5226 Destroy overridden time entry activities and rows from the habtm join table @queries_roles@ on project deletion (#36416).
Patch by Holger Just.
 


git-svn-id: http://svn.redmine.org/redmine/trunk@21437 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-24 19:44:36 +00:00
Go MAEDA
3686b77eb6 Update copyright year in source files to 2022 (#36379).
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 05:29:10 +00:00
Marius Balteanu
6cbf1f2015 Explicitly specify escape character using an ESCAPE on SQLite (#35073).
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@21240 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-09 06:35:47 +00:00
Marius Balteanu
05e9d7883b Use sanitize_sql_like in like scopes (#35073).
Patch Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@21231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-03 19:44:39 +00:00
Go MAEDA
da4303a961 Locked users should not be displayed in the members box of the project overview page (#35606).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21090 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-27 04:55:08 +00:00
Go MAEDA
7f965286ed Default issue query (#7360).
Patch by Katsuya HIDAKA (the author of https://github.com/hidakatsuya/redmine_default_custom_query), Takenori TAKAKI, Olivier Chabert, and Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@21061 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-06 06:01:50 +00:00
Go MAEDA
a9aae29708 Remove deprecated Project#members_by_role (#35031).
git-svn-id: http://svn.redmine.org/redmine/trunk@21003 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-05-15 05:52:58 +00:00
Go MAEDA
2a564a1376 DEPRECATION WARNING: Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1. (#29914, #32897).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 14:32:23 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Go MAEDA
06ac3473e0 Reverts r20653.
git-svn-id: http://svn.redmine.org/redmine/trunk@20815 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-18 00:59:01 +00:00
Toshi MARUYAMA
ee877f6c2e place the '.' on the previous line of the method call at app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20653 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-17 13:09:41 +00:00
Toshi MARUYAMA
fd112cb766 shorten long line of app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20639 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-12 15:49:36 +00:00
Toshi MARUYAMA
42b05f85ea shorten long line of app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20589 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-09 14:11:30 +00:00
Go MAEDA
f43b3685ff Use sum { ... } instead of map { ... }.sum (#34399).
git-svn-id: http://svn.redmine.org/redmine/trunk@20581 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-06 01:36:39 +00:00
Toshi MARUYAMA
0ba5cd4fea use "do end" instead of {} at ActiveRecord scope lambda of app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20341 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-12 12:31:12 +00:00
Toshi MARUYAMA
8fa5b6051f add empty line after guard clause to app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20237 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-03 14:55:57 +00:00
Toshi MARUYAMA
ec488e6379 use "do end" instead of {} at app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20079 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-26 15:01:28 +00:00
Toshi MARUYAMA
b8575166d8 remove spaces inside {} of app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20075 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-24 16:07:04 +00:00
Go MAEDA
dbe76a23b3 Allow normal users to delete a project (#33945).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@20034 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-15 04:15:13 +00:00
Go MAEDA
f19c291b59 Show groups in members box on project overview page (#33174).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19718 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-22 14:52:58 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Go MAEDA
777704249f Fix logging time via a commit message for project specific activities (#29838).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@19512 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-11 13:33:22 +00:00
Go MAEDA
47a71c8011 Reverts r19478 (#32897).
git-svn-id: http://svn.redmine.org/redmine/trunk@19479 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-30 05:27:52 +00:00
Go MAEDA
10bb12e09f Fix 'DEPRECATION WARNING: Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1.' (#32897).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19478 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-28 09:49:14 +00:00
Toshi MARUYAMA
1bc6d701c9 cleanup: rubocop: fix Layout/SpaceInsidePercentLiteralDelimiters in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19280 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 16:46:37 +00:00
Toshi MARUYAMA
82c0eaadc3 cleanup: rubocop: fix Layout/IndentFirstArrayElement in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19049 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 17:57:24 +00:00
Toshi MARUYAMA
b31b57f82d cleanup: rubocop: fix Layout/BlockAlignment in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19009 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 11:53:48 +00:00
Toshi MARUYAMA
8688fd10eb cleanup: rubocop: fix Layout/AlignArguments in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18998 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 09:18:07 +00:00
Toshi MARUYAMA
790d2bae70 code cleanup: rubocop: fix Style/ParenthesesAroundCondition in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18832 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 15:54:12 +00:00
Toshi MARUYAMA
0fdaa963aa code cleanup: rubocop: fix Style/WhileUntilModifier in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18758 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 11:15:43 +00:00
Go MAEDA
ce831ae5e4 Reject project custom field values not visible for the user (#31954, #31925).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18401 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-27 10:20:09 +00:00
Go MAEDA
024f2aef6c Code cleanup: RuboCop: Fix Style/IdenticalConditionalBranches in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18380 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-20 03:27:15 +00:00
Go MAEDA
3495cba92b Per role visibility settings for project custom fields (#31925).
Patch by Jens Krämer and Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18379 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-20 01:44:44 +00:00
Go MAEDA
0d4ed12388 Code cleanup: RuboCop: Rails/ActiveRecordAliases
update_attributes is deprecated in Rails 6.0 and will be removed in Rails 6.1 (#29914).


git-svn-id: http://svn.redmine.org/redmine/trunk@18375 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-17 08:14:36 +00:00
Go MAEDA
4082069c75 Update copyright year.
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
72e1451159 Use Regexp#match? to reduce allocations of MatchData object (#28940).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-27 02:15:24 +00:00
Go MAEDA
bd5977d97e Support frozen_string_literal in app/**/*.rb (#26561).
Contributed by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17987 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 13:36:03 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Go MAEDA
6a639cdf0f Translation missing error in "Project's Status" filter options (#30718).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17869 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-15 23:44:20 +00:00
Jean-Philippe Lang
12d1372ae5 Let admin users unarchive subprojects of archived projects (#29993).
git-svn-id: http://svn.redmine.org/redmine/trunk@17681 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-02 11:13:28 +00:00
Go MAEDA
21034c5628 Filter issues after project status (#20081).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17607 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-29 04:03:52 +00:00
Go MAEDA
81fcc06d55 Add CSS class to identify public projects (#28413).
Patch by Sho HASHIMOTO.


git-svn-id: http://svn.redmine.org/redmine/trunk@17452 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-07-22 05:02:12 +00:00
Go MAEDA
45478883a4 Copy project attachments (#26622).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@17333 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-05-13 08:49:18 +00:00
Go MAEDA
c2c2a9c9f7 Copy version attachments (i.e. Files) along with the versions on project copy (#26622).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@17332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-05-13 08:48:10 +00:00
Go MAEDA
07f0c2791e Copy wiki attachments on project copy (#10282).
Patch by  Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17315 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-28 04:44:32 +00:00
Go MAEDA
ea562ffa43 Allow to copy documents along with projects (#26621).
Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@17314 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-04-28 03:45:23 +00:00
Jean-Philippe Lang
c1e7146498 Removes deprecated methods.
git-svn-id: http://svn.redmine.org/redmine/trunk@16871 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 16:18:27 +00:00
Jean-Philippe Lang
d74f0bfd5c Merged rails-5.1 branch (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
Toshi MARUYAMA
ff257d05e3 Replace tabs with spaces (#26333).
Patched by Mischa The Evil.

git-svn-id: http://svn.redmine.org/redmine/trunk@16753 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-04 04:00:23 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00