Marius Balteanu
81d647e34d
Render anonymous and group avatars also when gravatar is disabled ( #29824 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23940 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-06 22:11:58 +00:00
Marius Balteanu
458072ab7d
When the Gravatar service is disabled, display the user's initials as a fallback avatar. This provides a consistent user interface than the generic icon ( #29824 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23903 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-08-07 19:07:33 +00:00
Marius Balteanu
66e2d1a9a9
Adds Initials to the list of default gratavar options ( #42623 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23767 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-14 19:41:04 +00:00
Go MAEDA
55c7a3177f
Fix missing deletion of custom field attachments upon issue deletion ( #38966 ).
...
Patch by Takenori TAKAKI (user:takenory).
git-svn-id: https://svn.redmine.org/redmine/trunk@23161 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-26 02:14:09 +00:00
Marius Balteanu
9d50075279
Replaces removed ActiveSupport::Deprecation.warn with custom deprecators ( #41141 , #36320 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@22961 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-20 05:58:38 +00:00
Marius Balteanu
c15c754589
Introduces @valid_watcher?@ check on watchables (@40946).
...
Patch by Jens Krämer (@jkraemer).
git-svn-id: https://svn.redmine.org/redmine/trunk@22916 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-08 21:33:50 +00:00
Marius Balteanu
2d20811f40
Improve watcher list permissions check to explicitly require @view_issue_watchers@ permission ( #40946 ).
...
Patch by Felix Schäfer (@felix).
git-svn-id: https://svn.redmine.org/redmine/trunk@22913 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-08 21:28:24 +00:00
Marius Balteanu
8b57ffc3c7
Adds the date of the last activity to the list of available columns for Projects ( #23954 ).
...
Patch by Frederico Camara (@fredsdc) and Marius BĂLTEANU (@marius.balteanu).
git-svn-id: https://svn.redmine.org/redmine/trunk@22811 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-03 13:14:18 +00:00
Marius Balteanu
3433731585
Switches from MD5 to SHA256 when computing the hash for gravatar URL ( #40652 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22802 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-02 20:23:05 +00:00
Marius Balteanu
38d950df55
Remove current year from source file copyright headers and update year in footer to 2024 ( #40043 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-26 22:55:54 +00:00
Marius Balteanu
13aeb797cf
Use ApplicationRecord instead of ActiveRecord::Base ( #38975 ).
...
Patch by Minoru Maeda (@maeda-m).
git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-23 11:52:38 +00:00
Marius Balteanu
c83c6a6750
Remove wrong copyright headers from acts_as_tree plugin ( #37730 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22600 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-11 06:22:37 +00:00
Marius Balteanu
a6a02971b1
Fixes exception in @acts_as_attachable@ when running on Ruby 2.7 ( #39862 ).
...
Patch by @maeda.
git-svn-id: https://svn.redmine.org/redmine/trunk@22569 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-27 15:40:08 +00:00
Marius Balteanu
c17b42509b
Fixes attachments functionality for (custom) plugins broken since fix for CVE-2022-44030 by adding a dynamic routing constraint which can be modified by plugins ( #39862 ).
...
Patch by @jkraemer.
git-svn-id: https://svn.redmine.org/redmine/trunk@22551 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-22 02:08:53 +00:00
Marius Balteanu
8a1bff856f
Add missing copyrights ( #37730 ).
...
Patch by Karel Pičman.
git-svn-id: https://svn.redmine.org/redmine/trunk@22482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-26 14:07:17 +00:00
Go MAEDA
fd132a8e82
Fix watcher handling on unsaved objects ( #39186 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22349 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-16 15:03:08 +00:00
Go MAEDA
25a4be7269
Use require_relative instead of File.dirname(__FILE__) + ... ( #38093 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22052 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-16 21:55:30 +00:00
Go MAEDA
92bd67c279
Update copyright year to 2023 ( #38141 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 06:19:35 +00:00
Marius Balteanu
6ffbd3c29e
Respect group memberships when checking if an object is watched ( #37065 ).
...
Patch Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21661 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-06-20 05:53:43 +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
Go MAEDA
9955844da1
Drop OpenID support ( #35755 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21312 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-14 00:09:53 +00:00
Marius Balteanu
3ea092c307
Add require to acts_as_tree ( #29914 , #32938 ).
...
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21265 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-27 20:53:13 +00:00
Marius Balteanu
232db2441d
Use full full path for require ( #29914 , #32938 ).
...
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21264 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-27 20:52:38 +00:00
Marius Balteanu
65f31d52cd
Use sanitize_sql_like on search tokens ( #35073 ).
...
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21230 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-03 19:43:19 +00:00
Go MAEDA
e41cf61de8
Validate attachment filenames on every change ( #34367 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@20946 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-16 01:36:59 +00:00
Go MAEDA
2aa316a3e4
Reload detached attachments ( #32922 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@20927 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-08 08:55:22 +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
e48ff48820
Evaluate acts_as_activity_provider's scope lazily ( #33664 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@20148 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-17 02:02:50 +00:00
Go MAEDA
b0739821e8
Locked users in a group receive notifications when the group is added as a watcher ( #4511 , #33935 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19998 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-01 14:08:45 +00:00
Go MAEDA
ee46c3570e
Use scope assignable_watchers ( #4511 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@19726 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-25 08:01:59 +00:00
Go MAEDA
b270a38928
Use principals in acts_as_watchable ( #4511 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@19725 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-25 08:00:55 +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
b9b841b23f
Updating custom fields does not trigger update to "updated_on" field in the customized object ( #5354 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19541 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-29 06:42:00 +00:00
Go MAEDA
39c979b341
Reverts r19510 that breaks IssueTest#test_closed_on_should_be_set_when_closing_an_open_issue ( #5354 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19511 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-11 04:56:03 +00:00
Go MAEDA
89c4e16807
Updating custom fields does not trigger update to "updated_on" field in the customized object ( #5354 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19510 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-11 04:06:25 +00:00
Go MAEDA
b995014c49
Allow adding user groups as watchers for issues ( #4511 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19498 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-06 08:19:13 +00:00
Go MAEDA
ba7d4745e2
Fix ruby 2.7 warning: The last argument is used as the keyword parameter ( #32542 , #31500 ).
...
Patch by Seiei Miyagi.
git-svn-id: http://svn.redmine.org/redmine/trunk@19454 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-23 15:42:50 +00:00
Go MAEDA
b67cb67cce
Remove code for unsupported versions of Rails from open_id_authentication ( #32297 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18788 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 01:34:21 +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
f992df684f
Small refactorization of avatar methods ( #31391 ).
...
* move existing methods from ApplicationHelper to a new helper file (AvatarsHelper)
* change default avatar size from 50 to 24 because most of the avatars are using the size 24
* class 'gravatar' is always added and all custom classes are appended
* added user name as default title for avatar images
* added two new methods: @assignee_avatar@ and @author_avatar@
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18175 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-19 22:27:41 +00:00
Go MAEDA
aaf432e5be
Remove the :ssl option which is not used anymore ( #31022 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18139 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-08 21:46:01 +00:00
Go MAEDA
bf0246ce83
Add avatar_server_url configuration option in order to support Libravatar ( #9112 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18124 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-04 15:59:50 +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
3b55f65407
Remove frozen_string_literal magic comment from files which are not used when running the application or tests ( #23630 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-21 06:06:53 +00:00
Go MAEDA
30e341db69
Support frozen_string_literal in lib/**/*.rb ( #26561 ).
...
Contributed by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 16:36:34 +00:00
Go MAEDA
d16369b67c
Enable frozen_string_literal for files which don't contain string literals ( #26561 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17981 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 01:47:12 +00:00
Go MAEDA
e050625a29
Always use HTTPS when accessing gravatar.com ( #31022 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17948 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 03:14:26 +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
9f4a4be01a
Remove trailing whitespaces from lib/plugins/gravatar/lib/gravatar.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17946 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-14 06:28:18 +00:00
Jean-Philippe Lang
53ea8dd979
Deadlock when assigning custom values ( #30465 ).
...
Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17823 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-01-19 11:57:19 +00:00