Project

General

Profile

Actions

Defect #26789

closed

When copying an issue, the field assigned_to is not set as expected

Added by Stéphane Briand SeaSideTech about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Environment:
  Redmine version                3.3.0.stable
  Ruby version                   2.1.9-p490 (2016-03-30) [x64-mingw32]
  Rails version                  4.2.6
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            2.13.3
  Filesystem                     
Redmine plugins:
  no plugin installed

Description of the problem:

I want to copy an existing issue. Its field assigned_to is empty.
In the issue form, I verify that the field is still empty, then click create.

Then the new issue has a user in the field assigned_to

First invesitgation:

I use a ruby debuger to run Redmine, and set a breakpoint in the function create in issues_controller.rb.

  • Before calling @issue.save => @issue.assigned_to is empty
  • After calling @issue.save => @issue.assigned_to contains a user.

Files

issues_controller.png (27.4 KB) issues_controller.png Stéphane Briand SeaSideTech, 2017-08-30 08:41
Actions

Also available in: Atom PDF