プロジェクト

全般

プロフィール

Vote #77933

完了

Time entry form - limit issue autocomplete to already selected project

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
13
version_id:
119
issue_org_id:
24189
author_id:
40856
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When creating a new time entry via /time_entries/new (that is, outside the scope of a project), the issue autocompleter always searches across all projects of the user, even if a project has already been selected in the dropdown above. Selecting an issue of another project here will lead to a validation error and should therefore prevented by only offering issues of the selected project.

The attached patch developed at "Planio":https://plan.io/redmine-hosting solves this by providing the autocompleter with a function (instead of the static URL), which dynamically constructs the scope and project_id parameters according to the user's project selection.


journals

This patch works fine for me. The candidates displayed on the screen is only the issues of the selected project.
Setting target version to 3.4.0.
--------------------------------------------------------------------------------
Committed, thanks.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリTime tracking_13 にセット
  • 対象バージョン3.4.0_119 にセット

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

いいね!0
いいね!0