Defect #17954

/time_entries/new can't derive project from issue

Added by Roger Hunwicks over 3 years ago. Updated over 3 years ago.

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

0%

Category:Time tracking
Target version:2.6.0
Resolution:Fixed Affected version:2.5.1

Description

If you use the /time_entries/new link to log a new time entry from outside the context of a project the form displays with both a Project field and an Issue field.

The Project field defaults to the first Project in the database, regardless of whether the current user is a member of that Project.

If the use enters an Issue Number belonging to a different Project and press Create they get an "Issue is invalid" error message. The user needs to change the Project to the correct value for the Issue in order for the time entry to be saved successfully.

It would be better if:

  • the Project select list didn't have a default value
  • if a valid Issue is chosed (and if the previous item has been implemented then the Project is blank) the Project is derived from the Issue automatically
  • ideally, the Project select list shouldn't show Projects the user isn't a member of

Associated revisions

Revision 13422
Added by Jean-Philippe Lang over 3 years ago

Let the new time_entry form be submitted without project (#17954).

History

#1 Updated by Jean-Philippe Lang over 3 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.6.0
  • Resolution set to Fixed

Roger Hunwicks wrote:

  • the Project select list didn't have a default value
  • if a valid Issue is chosed (and if the previous item has been implemented then the Project is blank) the Project is derived from the Issue automatically

Fixed in r13422.

  • ideally, the Project select list shouldn't show Projects the user isn't a member of

The list shows projects for which the user is allowed to log time. Please open a new ticket if there's a problem about that.

Also available in: Atom PDF