Project

General

Profile

Actions

Defect #23959

open

Issue copy form load wrong data when user can't create issues in the copied issue project

Added by Lucas Arnaud about 8 years ago. Updated about 8 years ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

When a user tries to copy an issue in a project they are not allowed to create issues, the first available project in combo box is selected but all form data rendered (custom fields, assignable users, possible watchers, etc) are based on the current.

In order to load the selected project data, the user have to select a different project and then the first one to force to reload the form.

The following patch solves this bug by setting the issue project to the first "@issue.allowed_target_projects" in IssuesController#build_new_issue_from_params


Files

Actions

Also available in: Atom PDF