MantisBT

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004431mantisbtrelationshipspublic2004-08-29 17:302004-09-12 08:24
Reporterjferraz 
Assigned Tomasc 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version0.19.0rc1 
Target VersionFixed in Version0.19.0 
Summary0004431: Relationship removal is always "duplicate of" in history
DescriptionWhen you set a relationship between two bugs, and afterwards remove them, the removal is registered as "duplicate of" in history.
Steps To ReproduceIt was already reproduced... just open 0003987 and read the history carefully... If you want to reproduce:

1. Report two bugs;
2. Create a parent-child relationship between them;
3. Delete the relationship;
4. The history will contain something like:

08-29-04 19:26  ju  Relationship added    parent of 0000004
08-29-04 19:27  ju  Relationship deleted  duplicate of 0000004
TagsNo tags attached.
Attached Filestxt file icon patch_4431.txt [^] (2,772 bytes) 2004-08-31 15:31 [Show Content]
txt file icon patch_4431_by_masc.txt [^] (3,815 bytes) 2004-09-08 09:55 [Show Content]

- Relationships
has duplicate 0004472closedjlatour Wrong entry in Issue History when deleting a "related to" relationship 
child of 0003987closedvboctor Mantis 0.19.0 Release 

-  Notes
User avatar (0007293)
jlatour (reporter)
2004-08-29 17:37

Yeah, noticed that :-) I'm not convinced that it's always duplicate of, but it is at least in some cases.
User avatar (0007294)
jlatour (reporter)
2004-08-29 17:40

OK, so most cases!
User avatar (0007340)
bpfennig (developer)
2004-08-31 15:32

I think this is a good solution (see attached diff).

Any comments?
User avatar (0007355)
masc (developer)
2004-09-01 10:32

The problem is due to the "enhancement" of the history details. Now the history shows the type of the relationship. The type stored in the DB is empty when deleting a relationship.
Find attached the patch to be applied at bug_relationship_delete.php to completely fix the problem. Now the type is stored when deleting as well.
User avatar (0007356)
masc (developer)
2004-09-01 10:37

Inviato memorandum a jlatour

Jeroen, I attached a patch to fix the bug.

Marcello
User avatar (0007371)
jlatour (reporter)
2004-09-01 17:31

Do I see it correctly that bpfenning's patch just replaces 'duplicate of' with 'related to' or something like that, and masc's patch will insert the correct form?
User avatar (0007498)
bpfennig (developer)
2004-09-08 12:52

Yes, you are right - masc's solution is much better.
User avatar (0007531)
thraxisp (manager)
2004-09-11 19:16

masc patch applied to CVS.

- Issue History
Date Modified Username Field Change
2004-08-29 17:30 jferraz New Issue
2004-08-29 17:37 jlatour Note Added: 0007293
2004-08-29 17:37 jlatour Status new => confirmed
2004-08-29 17:37 jlatour Relationship added child of 0003987
2004-08-29 17:38 jlatour Relationship deleted 0003987
2004-08-29 17:39 jlatour Relationship added child of 0003987
2004-08-29 17:40 jlatour Note Added: 0007294
2004-08-31 15:31 bpfennig File Added: patch_4431.txt
2004-08-31 15:32 bpfennig Note Added: 0007340
2004-08-31 15:32 bpfennig Assigned To => bpfennig
2004-08-31 15:32 bpfennig Status confirmed => assigned
2004-09-01 10:32 masc Note Added: 0007355
2004-09-01 10:36 masc File Added: patch_4431_by_masc.txt
2004-09-01 10:37 masc Note Added: 0007356
2004-09-01 17:31 jlatour Note Added: 0007371
2004-09-03 01:54 jlatour Relationship added has duplicate 0004472
2004-09-08 09:45 masc Assigned To bpfennig => masc
2004-09-08 09:51 masc File Deleted: patch_4431_by_masc.txt
2004-09-08 09:51 masc File Added: patch_4431_by_masc.txt
2004-09-08 09:55 masc File Added: patch_4431_by_masc.txt
2004-09-08 09:56 masc File Deleted: patch_4431_by_masc.txt
2004-09-08 12:52 bpfennig Note Added: 0007498
2004-09-11 19:16 thraxisp Status assigned => resolved
2004-09-11 19:16 thraxisp Fixed in Version => 0.19.0
2004-09-11 19:16 thraxisp Resolution open => fixed
2004-09-11 19:16 thraxisp Note Added: 0007531
2004-09-12 08:24 vboctor Status resolved => closed


MantisBT 1.2.16dev master-1.2.x-8c2bd07 [^]
Copyright © 2000 - 2013 MantisBT Team
Time: 0.3294 seconds.
memory usage: 2,847 KB
Powered by Mantis Bugtracker