プロジェクト

全般

プロフィール

Vote #77847

未完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
0
issue_org_id:
23959
author_id:
155112
assigned_to_id:
0
comments:
3
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Needs feedback]

説明

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


journals

The previous patch was wrong. I am sending the fixed version.

<pre>
These are my environment settings:
Redmine version 3.3.0.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux]
Rails version 4.2.6
Environment development
Database adapter PostgreSQL

</pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Lucas Arnaud wrote:
> 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.

Sorry, I cannot reproduce on version:3.3.1.
Please tell us how to reproduce.
--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0