View Issue Details

IDProjectCategoryView StatusLast Update
0036989mantisbtbugtrackerpublic2026-04-06 11:05
ReporterKolya Ruppel Assigned Toatrol  
PrioritylowSeveritytrivialReproducibilityalways
Status closedResolutionduplicate 
Product Version2.28.1 
Summary0036989: IssueAddCommand.php - Cloning a bugnote
Description

Hello,

When cloning a bug that has multiple bugnotes attached to it, the dates on all attached bugnotes
are overwritten by the current timestamp.

I saw in IssueAddCommand.php that here no date is passed to the bugnote_add function.
My suggestion in IssueAddCommand.php :
bugnote_add(
$t_issue_id,
$t_parent_bugnote->note,
$t_parent_bugnote->time_tracking,
$t_private,
$t_parent_bugnote->note_type,
$t_parent_bugnote->note_attr,
$t_parent_bugnote->reporter_id,
false,
$t_parent_bugnote->date_submitted, # <-- add date here instead of 0
$t_parent_bugnote->last_modified, # <-- add date here instead of 0
false );

What do you think about it? I am writing this because the bugnotes change their order when cloning.
I can make a PR for this if you think this is a good idea. :)

Btw thanks for the great bugtracker!

Steps To Reproduce
  1. Create a bug with multiple bugnotes attached - with different timestamps.

  2. Clone the bug

  3. Inspect the timestamps of the cloned bugnotes

TagsNo tags attached.

Relationships

duplicate of 0025792 new in cloned issue the order of comments and pictures is not kept 

Activities

atrol

atrol

2026-03-20 12:31

developer   ~0070896

Please discuss in 0025792