https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292015-12-11T11:03:41ZRedmineRedmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=678252015-12-11T11:03:41ZToshi MARUYAMA
<ul><li><strong>Subject</strong> changed from <i>Roll back status when issue copied.</i> to <i>Roll back copied issue status when tracker change</i></li></ul> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=692632016-02-16T04:36:04Zyoshinobu yoshida
<ul></ul><p>excuse me, answer please...</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=692642016-02-16T05:06:56ZGo MAEDA
<ul></ul><p>I cannot reproduce.<br />Could you reproduce on <a class="external" href="https://my.redmine.jp/demo/">https://my.redmine.jp/demo/</a> ?</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=692652016-02-16T06:02:55Zyoshinobu yoshida
<ul></ul><p>It reproduced at the following link.<br />After changing the status to "New", status when you change the tracker to "Feature" or "Support" <br />will be back from the "New" to "In Progress".</p>
<p><a class="external" href="https://my.redmine.jp/demo/projects/demo/issues/13360/copy">https://my.redmine.jp/demo/projects/demo/issues/13360/copy</a></p>
<p>In Japanese:<br />下記リンクにて再現できました。<br />ステータスを「新規」に変更後、トラッカーを「機能」や「サポート」に変更した際に<br />ステータスが「新規」から「進行中」に戻ってしまいます。</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=693942016-02-23T08:34:18Zyoshinobu yoshida
<ul></ul><p>excuse me...</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=695732016-03-08T02:05:50Zyoshinobu yoshida
<ul></ul><p>answer please...</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=696482016-03-13T13:15:44ZToshi MARUYAMA
<ul></ul><p>I cannot reproduce on vanilla Redmine 3.2.</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=696532016-03-14T03:51:45ZGo MAEDA
<ul></ul><p>Toshi MARUYAMA wrote:</p>
<blockquote>
<p>I cannot reproduce on vanilla Redmine 3.2.</p>
</blockquote>
<p>I can reproduce on the latest trunk (3.2.1.devel.15244). Maybe it is caused by screen refresh when the tracker field is changed.</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=696552016-03-14T08:06:28Zyoshinobu yoshida
<ul></ul><p>thanks.<br />it is bug? or specification?</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=696832016-03-15T13:51:18ZToshi MARUYAMA
<ul></ul><p>I can reproduce on vanilla Redmine 3.2 if "Default status"es of copy src and dest tracker are different.</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=697002016-03-16T01:58:13Zyoshinobu yoshida
<ul></ul><p>Toshi MARUYAMA wrote:</p>
<blockquote>
<p>I can reproduce on vanilla Redmine 3.2 if "Default status"es of copy src and dest tracker are different.</p>
</blockquote>
<p>realy?<br />I could reproduce on vanilla Redmine 3.2 even if "Default status"es of copy src and dest tracker are same.<br /><del>However, if status of src and "Default status" of desc are same, cannot reproduce.</del></p>
<p>I want know whether the bug or specifications, because there is a need to fix my plugins ASAP.<br />Also if it is bug, which version do you fix it?</p>
<p>Best regards.</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=697082016-03-16T04:18:36ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li></ul><p>"I can produce" and "I cannot produce" is not constructive.<br />Please explain more details of your condition.</p>
<p>yoshinobu yoshida wrote:</p>
<blockquote>
<p>Also if it is bug, which version do you fix it?</p>
</blockquote>
<p>Patch welcome if you think it is bug.</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=697092016-03-16T04:23:46ZToshi MARUYAMA
<ul></ul><p>Toshi MARUYAMA wrote:</p>
<blockquote>
<p>Patch welcome if you think it is bug.</p>
</blockquote>
<p>With test: <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/tags/3.2.1/test/ui/issues_test_ui.rb">source:tags/3.2.1/test/ui/issues_test_ui.rb</a></p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=697102016-03-16T05:01:51Zyoshinobu yoshida
<ul></ul><p>yoshinobu yoshida wrote:</p>
<blockquote>
<p>However, if status of src and "Default status" of desc are same, cannot reproduce.</p>
</blockquote>
<p>Sorry, this sentence was my misunderstanding.<br />Please forget.</p>
<p>Toshi MARUYAMA wrote:</p>
<blockquote>
<p>Patch welcome if you think it is bug.</p>
</blockquote>
<p>OK, I will try.</p> Redmine - Defect #21485: Roll back copied issue status when tracker changehttps://www.redmine.org/issues/21485?journal_id=697262016-03-17T04:43:50Zyoshinobu yoshida
<ul></ul><p>Hi,<br />Does this patch has any problems?<br />I was wondering if you could teach me your knowledge.</p>
<pre><code class="diff syntaxhl"><span class="gh">diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 0618569..37c8c36 100644
</span><span class="gd">--- a/app/controllers/issues_controller.rb
</span><span class="gi">+++ b/app/controllers/issues_controller.rb
</span><span class="p">@@ -428,7 +428,7 @@</span> class IssuesController < ApplicationController
@issue.start_date ||= Date.today if Setting.default_issue_start_date_to_creation_date?
attrs = (params[:issue] || {}).deep_dup
<span class="gd">- if action_name == 'new' && params[:was_default_status] == attrs[:status_id]
</span><span class="gi">+ if action_name == 'new' && params[:was_default_status] == attrs[:status_id] && !params[:copy_from]
</span> attrs.delete(:status_id)
end
if action_name == 'new' && params[:form_update_triggered_by] == 'issue_project_id'
</pre>
<p>Best regards.</p></code></pre>