Defect #99

Update of time entry fails when issue has been moved to other project

Added by Matthijs Dekker over 11 years ago. Updated over 11 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution: Affected version:

Description

When an issue has been moved to another project, it is no longer possible to edit the existing time entries linked to
this issue.

Error message: « Issue » is invalid

Cause:
The project_id in the time_entries table still points to the previous project. Validation in in the TimeEntry model
cancels the update, since the project_id does not match the issue.project_id.

Suggested fix:
When moving the issue to another project, also move the time entries to the new project.

Patch has been attached.

projects_controller.patch Magnifier (770 Bytes) Matthijs Dekker, 2008-02-03 10:51

History

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

Fixed in r909.

Also available in: Atom PDF