https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292019-05-28T07:01:09ZRedmineRedmine - Feature #31444: Add "<< me >>" option to user format issue custom fieldshttps://www.redmine.org/issues/31444?journal_id=920832019-05-28T07:01:09ZMizuki ISHIKAWA
<ul><li><strong>File</strong> <a href="/attachments/23194">feature-31444.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/23194/feature-31444.patch">feature-31444.patch</a> added</li><li><strong>File</strong> <a href="/attachments/23195">result.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/23195/result.png">result.png</a> added</li></ul><p>I attached a patch to add this feature.<br />Add "<< me >>" only when login user is included in the options.<br /><img src="https://www.redmine.org/attachments/download/23195/result.png" style="width: 500px;border: 1px solid #ccc;" alt="" /></p> Redmine - Feature #31444: Add "<< me >>" option to user format issue custom fieldshttps://www.redmine.org/issues/31444?journal_id=921282019-06-01T08:41:52ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>4.1.0</i></li></ul><p>LGTM. Setting the target version to 4.1.0.</p> Redmine - Feature #31444: Add "<< me >>" option to user format issue custom fieldshttps://www.redmine.org/issues/31444?journal_id=922242019-06-05T06:23:36Zakitani ryo
<ul></ul><p>confirmed.<br />I think there is no problem.</p> Redmine - Feature #31444: Add "<< me >>" option to user format issue custom fieldshttps://www.redmine.org/issues/31444?journal_id=923812019-06-18T01:58:56ZMizuki ISHIKAWA
<ul></ul><p>akitani ryo wrote:</p>
<blockquote>
<p>confirmed.<br />I think there is no problem.</p>
</blockquote>
<p>Thank you for confirming!</p> Redmine - Feature #31444: Add "<< me >>" option to user format issue custom fieldshttps://www.redmine.org/issues/31444?journal_id=924762019-06-20T09:05:48ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed, thanks.</p> Redmine - Feature #31444: Add "<< me >>" option to user format issue custom fieldshttps://www.redmine.org/issues/31444?journal_id=925002019-06-20T14:34:17ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>The test fails randomly.</p>
<pre>
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
</pre>
<p>It can be fixed with the following patch.</p>
<pre><code class="diff syntaxhl"><span class="gh">Index: test/unit/lib/redmine/field_format/user_field_format_test.rb
===================================================================
</span><span class="gd">--- test/unit/lib/redmine/field_format/user_field_format_test.rb (リビジョン 18300)
</span><span class="gi">+++ test/unit/lib/redmine/field_format/user_field_format_test.rb (作業コピー)
</span><span class="p">@@ -82,6 +82,7 @@</span>
end
def test_possible_values_options_should_return_project_members_and_me_if_logged_in
<span class="gi">+ ::I18n.locale = 'en'
</span> User.current = User.find(2)
field = IssueCustomField.new(:field_format => 'user')
project = Project.find(1)
</code></pre> Redmine - Feature #31444: Add "<< me >>" option to user format issue custom fieldshttps://www.redmine.org/issues/31444?journal_id=925072019-06-20T16:36:00ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Committed, thanks.</p>