https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292015-04-04T02:30:35ZRedmineRedmine - Defect #19553: When create by copying the issue, status can not be changed to defaulthttps://www.redmine.org/issues/19553?journal_id=627712015-04-04T02:30:35ZGo MAEDA
<ul><li><strong>Category</strong> set to <i>Issues</i></li></ul><p>I have confirmed the behavior.<br />It seems to be caused by <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/13535/entry/trunk/app/controllers/issues_controller.rb#L430">source:trunk/app/controllers/issues_controller.rb@13535#L430</a>, introduced in <a class="changeset" title="Default status per tracker (#5991)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/13535">r13535</a>.</p> Redmine - Defect #19553: When create by copying the issue, status can not be changed to defaulthttps://www.redmine.org/issues/19553?journal_id=627722015-04-04T05:54:25ZGo MAEDA
<ul></ul><p>Workaround for this issue:</p>
<pre><code class="diff syntaxhl"><span class="gh">Index: app/controllers/issues_controller.rb
===================================================================
</span><span class="gd">--- app/controllers/issues_controller.rb (revision 14155)
</span><span class="gi">+++ app/controllers/issues_controller.rb (working copy)
</span><span class="p">@@ -425,7 +425,7 @@</span>
@issue.start_date ||= Date.today if Setting.default_issue_start_date_to_creation_date?
if attrs = params[:issue].deep_dup
<span class="gd">- if params[:was_default_status] == attrs[:status_id]
</span><span class="gi">+ if action_name == 'new' && params[:was_default_status] == attrs[:status_id]
</span> attrs.delete(:status_id)
end
@issue.safe_attributes = attrs
</code></pre> Redmine - Defect #19553: When create by copying the issue, status can not be changed to defaulthttps://www.redmine.org/issues/19553?journal_id=628272015-04-05T08:56:26ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>3.0.2</i></li></ul> Redmine - Defect #19553: When create by copying the issue, status can not be changed to defaulthttps://www.redmine.org/issues/19553?journal_id=629242015-04-08T15:18:19ZGo MAEDA
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/19565">Defect #19565</a>: problem with the ticket situation copied, the situation this resetting</i> added</li></ul> Redmine - Defect #19553: When create by copying the issue, status can not be changed to defaulthttps://www.redmine.org/issues/19553?journal_id=629992015-04-11T07:09:46ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>When create by copying the issue, status can not be changed.</i> to <i>When create by copying the issue, status can not be changed to default</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</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>Fix committed in <a class="changeset" title="When create by copying the issue, status can not be changed to default (#19553)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/14158">r14158</a> with a test.</p> Redmine - Defect #19553: When create by copying the issue, status can not be changed to defaulthttps://www.redmine.org/issues/19553?journal_id=633482015-04-25T07:38:37ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>