Actions
Feature #31444
closedAdd "<< me >>" option to user format issue custom fields
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Description
Currently, user format custom fields list member of the project, but "<< me >>" option which you can see in the Assignee field is not included in the list.
I think custom fields should have "<< me >>" option like the Assignee field for better usability and UI consistency.
Files
Updated by Mizuki ISHIKAWA over 5 years ago
- File feature-31444.patch feature-31444.patch added
- File result.png result.png added
I attached a patch to add this feature.
Add "<< me >>" only when login user is included in the options.
Updated by Go MAEDA over 5 years ago
- Target version set to 4.1.0
LGTM. Setting the target version to 4.1.0.
Updated by Mizuki ISHIKAWA over 5 years ago
akitani ryo wrote:
confirmed.
I think there is no problem.
Thank you for confirming!
Updated by Jean-Philippe Lang over 5 years ago
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
Committed, thanks.
Updated by Go MAEDA over 5 years ago
- Status changed from Closed to Reopened
The test fails randomly.
Failure: Redmine::UserFieldFormatTest#test_possible_values_options_should_return_project_members_and_me_if_logged_in [/var/lib/jenkins/workspace/trunk/DATABASE_ADAPTER/sqlite3/RUBY_VER/ruby-2.6/test/unit/lib/redmine/field_format/user_field_format_test.rb:89]: --- expected +++ actual @@ -1 +1 @@ -["<< me >>", "Dave Lopper", "John Smith"] +["<< moi >>", "Dave Lopper", "John Smith"] bin/rails test test/unit/lib/redmine/field_format/user_field_format_test.rb:84
It can be fixed with the following patch.
Index: test/unit/lib/redmine/field_format/user_field_format_test.rb
===================================================================
--- test/unit/lib/redmine/field_format/user_field_format_test.rb (リビジョン 18300)
+++ test/unit/lib/redmine/field_format/user_field_format_test.rb (作業コピー)
@@ -82,6 +82,7 @@
end
def test_possible_values_options_should_return_project_members_and_me_if_logged_in
+ ::I18n.locale = 'en'
User.current = User.find(2)
field = IssueCustomField.new(:field_format => 'user')
project = Project.find(1)
Updated by Jean-Philippe Lang over 5 years ago
- Status changed from Reopened to Closed
Committed, thanks.
Actions