View Issue Details

IDProjectCategoryView StatusLast Update
0007390mantisbtrelationshipspublic2014-10-24 22:38
Reporterfrentmeister Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version1.0.5 
Summary0007390: Make relationships sortable
Description

We need a sort function for the Realationships

Additional Information

See Screenshot for more Infos

TagsNo tags attached.
Attached Files
sortable.jpg (67,405 bytes)   
sortable.jpg (67,405 bytes)   

Relationships

has duplicate 0007332 closedvboctor Sorting relationships within an issue 
has duplicate 0007656 closedvboctor sort or filter the relations list 
has duplicate 0007657 closedvboctor Relationships are not sorted correctly 

Activities

Ellerbrok

Ellerbrok

2006-09-25 07:11

reporter   ~0013493

I modified the relationship API to use

ORDER BY relationship_type, status, category, $t_mantis_bug_relationship_table.source_bug_id";

on the relationship-database-queries.

That's really useful.

frentmeister

frentmeister

2006-09-25 09:14

reporter   ~0013500

Sorry, can u give me some hints to inplement this `?

Dont understand this....

Ellerbrok

Ellerbrok

2006-09-25 09:29

reporter   ~0013503

Yes, of course!

There is this file core/relationship_api.php. IN this file you'll find the two functions: relationship_get_all_src and relationship_get_all_dest

There you'll find a line like:
ORDER BY relationship_type, $t_mantis_bug_relationship_table.id";

Just replace it with:
ORDER BY relationship_type, status, category, $t_mantis_bug_relationship_table.source_bug_id";

frentmeister

frentmeister

2006-09-25 09:30

reporter   ~0013504

Yes thanks...many many many Thanks ....

it s working!

Ellerbrok

Ellerbrok

2006-09-25 09:37

reporter   ~0013505

But anyway there SHOULD be the possibility to set the sorting in the configuration-file.

User modifications of the source-code are difficult. It is very difficult to keep track of all modifications and to migrate to a newer Mantis version.

frentmeister

frentmeister

2006-09-25 09:40

reporter   ~0013506

Yes for this i usw Winmerge, to see what i Mod. and what is new in Mantis ;)

I have a lot of Modding make in the last Time....

Yes i have make some ...bad..code Bugs...but Win Merge help..itßs secure

frentmeister

frentmeister

2006-09-25 10:00

reporter   ~0013508

But a other Problem, i need a hint to sort the Rel. into a Issue, we have some big List there, have u any idea about the long list of Rel. into a Issue, how can i make the list shott?

Ellerbrok

Ellerbrok

2006-09-26 02:53

reporter   ~0013510

I don't understand what you mean.

I think it is better to send me an email then spamming this bug with all the notes. Feel free to send me a mail at: marcel.ellerbrok(at)aicon.de

I would prefer german language because it's my natural language, but you can use english as well.