Commit Graph

93 Commits

Author SHA1 Message Date
Marius Balteanu
4837c0fbe3 Replaces the use of text_area with textarea (#43276).
git-svn-id: https://svn.redmine.org/redmine/trunk@24030 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-06 22:45:02 +00:00
Go MAEDA
4b42d68842 Avoid adding "%" suffix in CSV export for Progress Bar custom fields to prevent import errors (#42335, #42706).
Patch by Kenta Kumojima (user:kumojima).


git-svn-id: https://svn.redmine.org/redmine/trunk@23780 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-17 02:02:04 +00:00
Go MAEDA
a1b5495e89 Fix Rubocop Style/ArgumentsForwarding (#42496).
git-svn-id: https://svn.redmine.org/redmine/trunk@23698 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-21 05:57:01 +00:00
Go MAEDA
ce94a1d71a Adds interval ratio setting to progressbar custom field (#42335).
Patch by Marius BĂLTEANU (user:marius.balteanu) and Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23686 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-19 08:46:02 +00:00
Go MAEDA
2b26027982 "Progress bar" custom field format (#42335).
Patch by Jens Krämer (user:jkraemer).


git-svn-id: https://svn.redmine.org/redmine/trunk@23560 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-03-26 10:33:46 +00:00
Go MAEDA
005f7d2166 Fix: Float custom values with ',' as decimal separator are not converted to '.' and cause SQL errors when sorting or summing (#42233).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23495 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-02-08 06:42:11 +00:00
Go MAEDA
93645a279e Use anonymous block forwarding introduced in Ruby 3.1 (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22973 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-21 00:46:15 +00:00
Go MAEDA
ee31bf8fe9 Add an option to render Integer and Float custom fields with thousands delimiters (#39997).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@22935 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-18 04:56:20 +00:00
Go MAEDA
4879302930 Refactor ApplicationHelper#format_object to accept options as a hash (#39997).
Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@22933 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-18 04:26:49 +00:00
Go MAEDA
f4c7e08d0f Key/value-pair custom field type not available to all customizable contents (#27543).
Patch by Felix Schäfer (@felix) and Takenori TAKAKI (@takenory).


git-svn-id: https://svn.redmine.org/redmine/trunk@22834 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-16 08:38:04 +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
Go MAEDA
1ab44859fe Support localized decimal separators for float values (#22024).
Patch by Liane Hampe (@liane_hampe).


git-svn-id: https://svn.redmine.org/redmine/trunk@22592 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-04 06:55:14 +00:00
Go MAEDA
b1510836b0 Rendering a custom field with a URL pattern set and containing " :" in the value raises Addressable::URI::InvalidURIError (#38464).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22205 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-21 03:06:06 +00:00
Go MAEDA
0b6f4c6811 Ruby 2.7: Fix RuboCop offense Performance/MapCompact (#38134).
git-svn-id: https://svn.redmine.org/redmine/trunk@22055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-17 01:38:27 +00:00
Go MAEDA
dbf8c1d921 Fix RuboCop offense Performance/RedundantEqualityComparisonBlock (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22031 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:30:25 +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
823080b45e Uses the new html sanitizer for links rendered by custom fields (#37750).
Patch by Jens Krämer.


git-svn-id: https://svn.redmine.org/redmine/trunk@21901 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-04 19:50:01 +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
b6a26a60f3 Fixes for Performance/StringIdentifierArgument introduced in RuboCop Performance 1.13.0 (#35142).
git-svn-id: http://svn.redmine.org/redmine/trunk@21330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-29 06:12:27 +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
ac015d49f9 Drag and drop file upload to file type custom field (#30776).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20712 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-01-13 06:30:49 +00:00
Toshi MARUYAMA
be96bd726d shorten long line of lib/redmine/field_format.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20596 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-09 14:12:23 +00:00
Toshi MARUYAMA
a605544aca shorten long line of lib/redmine/field_format.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20430 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-19 13:30:08 +00:00
Toshi MARUYAMA
b250912d17 use "do end" instead of {} at lib/redmine/field_format.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20359 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-13 12:40:33 +00:00
Toshi MARUYAMA
8d8a49cee0 shorten long line of lib/redmine/field_format.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20323 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-10 11:09:46 +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
62fe933eed Ruby 2.7: Remove deprecated URI.escape/unescape (#32752).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19455 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-23 23:28:34 +00:00
Toshi MARUYAMA
18e8a45752 code layout clean up lib/redmine/field_format.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19299 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-25 16:47:52 +00:00
Toshi MARUYAMA
a7824755ee cleanup: rubocop: fix Lint/ParenthesesAsGroupedExpression in lib/redmine/field_format.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19261 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 13:19:50 +00:00
Toshi MARUYAMA
f56144063d cleanup: rubocop: fix Layout/AlignArguments in lib/redmine/field_format.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19038 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 17:10:02 +00:00
Jean-Philippe Lang
28f37adcd3 Add "<< me >>" option to user format issue custom fields (#31444).
Patch by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18288 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 09:05: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
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
07b3087fda Enable frozen_string_literal for some files under app and lib directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 09:37:35 +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
Jean-Philippe Lang
bee7f2531b Missing validation for custom field formats based on RecordList (#29674).
Patch by Alexander Achenbach.

git-svn-id: http://svn.redmine.org/redmine/trunk@17645 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-28 18:15:34 +00:00
Go MAEDA
c5eff3dae2 Strip whitespace from integer custom field (#8317).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17625 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-08 13:01:06 +00:00
Go MAEDA
e159928e6b Use find_by instead of where.first to remove unnecessary sorting (#26747).
Patch by  Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17586 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-06 16:03:26 +00:00
Jean-Philippe Lang
d8a2024715 Dangerous query method deprecation warnings (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@17411 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-23 05:19:07 +00:00
Go MAEDA
c35433ad01 Links for custom field value don't have "external" class (#27024).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17138 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-01-01 06:18:01 +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
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
Jean-Philippe Lang
335a16e4fd Cusotom field label should not be associated to the first input (#25760).
git-svn-id: http://svn.redmine.org/redmine/trunk@16574 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-27 08:49:08 +00:00
Jean-Philippe Lang
f338fe9075 Allow to set multiple values in emails for list custom fields (#16549).
git-svn-id: http://svn.redmine.org/redmine/trunk@16380 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-08 19:55:56 +00:00
Jean-Philippe Lang
7cab59d220 Reverts unwanted change (#24769).
git-svn-id: http://svn.redmine.org/redmine/trunk@16318 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-30 21:35:23 +00:00
Jean-Philippe Lang
df4564bbd4 Show all members in user custom field filter on the cross project issue list (#24769).
git-svn-id: http://svn.redmine.org/redmine/trunk@16310 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-30 18:37:17 +00:00
Jean-Philippe Lang
8e4cb42f8e Raise the height of text custom fields.
git-svn-id: http://svn.redmine.org/redmine/trunk@16252 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-25 14:58:50 +00:00
Jean-Philippe Lang
b40d66f39f Option for long text custom fields to be displayed under the description field (#21705).
Based on patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@16251 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-25 14:55:36 +00:00
Jean-Philippe Lang
9206d077d4 Group versions by status in version custom field filter (#23265).
git-svn-id: http://svn.redmine.org/redmine/trunk@16194 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-14 11:30:00 +00:00