Defect #24718

Prevent from reassigning spent time to an issue that is going to be deleted

Added by Go MAEDA about 1 month ago. Updated about 1 month ago.

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

0%

Category:Issues
Target version:3.2.5
Resolution:Fixed Affected version:

Description

We can reassign reported hours to other issue when we delete issues.
But if you reassign reported hours to the issue about to be deleted, we will lose those data without any notice.

This is a patch to fix this behavior: reassigning-reported-hours-to-the-issue-about-to-deleted-should-fail.diff


Related issues

Related to Redmine - Defect #24693: Spent time on subtasks should also be reassigned when del... Closed

Associated revisions

Revision 16118
Added by Jean-Philippe Lang about 1 month ago

Handle time entries on subtasks and prevent from reassigning an issue that is going to be deleted (#24718, #24693).

Revision 16119
Added by Jean-Philippe Lang about 1 month ago

Add :error_cannot_reassign_time_entries_to_an_issue_about_to_be_deleted i18n string (#24718).

History

#1 Updated by Go MAEDA about 1 month ago

  • Related to Defect #24693: Spent time on subtasks should also be reassigned when deleting an issue added

#2 Updated by Jean-Philippe Lang about 1 month ago

  • Subject changed from Reassigning reported hours when deleting issue may causes loss of those data to Prevent from reassigning spent time to an issue that is going to be deleted
  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 3.2.5
  • Resolution set to Fixed

We should also prevent from reassigning time to a subtask that is going to be deleted as well.
r16118 should fix this one and #24693 with tests for both.
Thanks for pointing this out.

#3 Updated by Jean-Philippe Lang about 1 month ago

  • Status changed from Resolved to Closed

#4 Updated by Mischa The Evil about 1 month ago

Nice catch Go...

Also available in: Atom PDF