Commit Graph

65 Commits

Author SHA1 Message Date
Go MAEDA
6e21ae7209 Fix RuboCop offense Layout/SpaceAfterComma, one of the offenses enabled in rubocop-rails-omakase (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22953 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 08:36:05 +00:00
Go MAEDA
de76bb3a4a Fix RuboCop offense Layout/EmptyLinesAroundClassBody, one of the offenses enabled in rubocop-rails-omakase (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22949 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 07:42:12 +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
Go MAEDA
7ed8183290 Remove redundant ApplicationHelper inclusions (#40506).
Patch by Takuya Kodama (@otegami).


git-svn-id: https://svn.redmine.org/redmine/trunk@22777 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-04-02 09:18:12 +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
1481c721a2 Use require_relative instead of require File.expand_path(..., __FILE__) (#38093).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 07:13:39 +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
Marius Balteanu
4807beaebf Explicitly specify text formatting in the tests (#35952).
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@21386 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-22 10:11:13 +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
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
Toshi MARUYAMA
bc47c95f17 shorten long line of test/unit/lib/redmine/field_format/version_field_format_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20594 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-09 14:12:08 +00:00
Toshi MARUYAMA
79058ef191 add space after comma to test/unit/lib/redmine/field_format/list_format_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20245 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-04 14:43:26 +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
Toshi MARUYAMA
dd6adffa8b cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/field_format/version_field_format_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19186 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-23 09:03:44 +00:00
Go MAEDA
a60bac1770 Add missing fixtures in AttachmentFormatVisibilityTest (#31705).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18327 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-07-12 07:26:16 +00:00
Jean-Philippe Lang
b4d3e429df Test failure (#31444).
git-svn-id: http://svn.redmine.org/redmine/trunk@18302 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 16:35:51 +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
adebf4da1d Remove trailing whitespaces from test (#31506).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18233 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-06 14:53:23 +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
b900ae6107 Support frozen_string_literal in test/**/*.rb (#26561).
Contributed by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17996 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-21 03:27:53 +00:00
Go MAEDA
4f5a3a156c Enable frozen_string_literal for some files under test directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17978 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 15:03:47 +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
6765505b2d Add missing fixtures to several tests (#30276).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17780 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-01-09 14:26:56 +00:00
Jean-Philippe Lang
2576292959 Set User.current to nil before unit tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@17761 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-16 17:23:31 +00:00
Jean-Philippe Lang
4bbe2fc7e6 Test failure.
git-svn-id: http://svn.redmine.org/redmine/trunk@17759 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-16 17:07:52 +00:00
Jean-Philippe Lang
10eba2878a Test failure.
git-svn-id: http://svn.redmine.org/redmine/trunk@17737 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-15 15:20:17 +00:00
Jean-Philippe Lang
4ce9de94bc Tests failure with SQLite3.
ActiveRecord::RecordNotUnique: SQLite3::ConstraintException: UNIQUE constraint failed: custom_fields_trackers.custom_field_id, custom_fields_trackers.tracker_id: INSERT INTO "custom_fields_trackers" ("custom_field_id", "tracker_id") VALUES (?, ?)

git-svn-id: http://svn.redmine.org/redmine/trunk@17675 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-01 12:38:16 +00:00
Jean-Philippe Lang
4770fa5b6a Tests for #29674.
Patch by Takenori TAKAKI.

git-svn-id: http://svn.redmine.org/redmine/trunk@17646 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-28 18:15:56 +00:00
Jean-Philippe Lang
4c0638c5f9 Unable to download file if custom field is not defined as visible to any users (#26705).
git-svn-id: http://svn.redmine.org/redmine/trunk@17158 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-01-08 17:43:31 +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
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
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
3faa3693d1 Test failures.
git-svn-id: http://svn.redmine.org/redmine/trunk@16359 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-03 17:17:50 +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
Jean-Philippe Lang
309c6cec86 Don't preload custom field filter values (#24787).
git-svn-id: http://svn.redmine.org/redmine/trunk@16173 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-12 20:19:45 +00:00
Jean-Philippe Lang
ef45304817 Adds file custom field format (#6719).
git-svn-id: http://svn.redmine.org/redmine/trunk@15917 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-23 09:16:14 +00:00
Jean-Philippe Lang
7abb92d813 Encode values, not full URL (#23841).
git-svn-id: http://svn.redmine.org/redmine/trunk@15846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 07:39:53 +00:00
Jean-Philippe Lang
bbd24fe350 Custom field List Link values to URL breaks on entries with spaces (#23067).
git-svn-id: http://svn.redmine.org/redmine/trunk@15539 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-18 06:17:34 +00:00
Jean-Philippe Lang
adb9980728 Allow global versions to be shown outside of a project for version custom fields (#23083).
Patch by Holger Just.

git-svn-id: http://svn.redmine.org/redmine/trunk@15536 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-18 05:59:20 +00:00
Jean-Philippe Lang
91e991e951 Limits the schemes that custom field URL patterns can use (#22925).
git-svn-id: http://svn.redmine.org/redmine/trunk@15435 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-01 19:27:09 +00:00
Jean-Philippe Lang
fad71f8b4b NoMethodError: undefined method `id' error on EnumerationFormat#value_from_keyword (#22911).
Patch by Haihan Ji.

git-svn-id: http://svn.redmine.org/redmine/trunk@15429 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-28 11:37:28 +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
68c192064a Set locale in tests (#21060).
git-svn-id: http://svn.redmine.org/redmine/trunk@14748 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-25 09:05:39 +00:00
Jean-Philippe Lang
2f51dc11cf Adds Enumeration custom field format (#21060).
Similar to List format but stores possible values as records.

git-svn-id: http://svn.redmine.org/redmine/trunk@14745 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-25 08:32:47 +00:00
Jean-Philippe Lang
42238a74f4 Display all versions in query filter (#19271).
git-svn-id: http://svn.redmine.org/redmine/trunk@14623 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-09-26 08:12:44 +00:00