Patch #24189

Time entry form - limit issue autocomplete to already selected project

Added by Jens Krämer 11 months ago. Updated 9 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Time tracking
Target version:3.4.0

Description

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 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.

0001-dynamically-build-the-autocomplete-url-294652.patch Magnifier (1.8 KB) Jens Krämer, 2016-10-28 10:06

Associated revisions

Revision 16082
Added by Jean-Philippe Lang 9 months ago

Time entry form - limit issue autocomplete to already selected project (#24189).

Patch by Jens Kraemer.

History

#1 Updated by Go MAEDA 10 months ago

  • Target version set to 3.4.0

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.

#2 Updated by Jean-Philippe Lang 9 months ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

Committed, thanks.

#3 Updated by Jean-Philippe Lang 9 months ago

  • Subject changed from time entry form - limit issue autocomplete to already selected project to Time entry form - limit issue autocomplete to already selected project

Also available in: Atom PDF