Download & Extend

Add state weight views sort handler and state relationships

Project:Case Tracker
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

The attached patch adds a straightforward Sort handler to Case Tracker, suitable for ordering views of cases in the same order as in state UI widgets.

Since I was right there, I also cleaned up the redundancy "Case Tracker: Case Tracker: State Names" for the State Names sort handler.

AttachmentSize
casetracker.weight_handler.patch1010 bytes

Comments

#1

Title:Add State Weight Views Sort Handler» Add state weight views sort handler and state relationships

went a little bit more ahead and added the weight as a field (so it can be used in a table to sort) as well as added relationship to link the priority and type of a case to its states.

AttachmentSize
998122-1-state-relationships-and-weight.patch 1.9 KB

#2

Assigned to:Grayside» Anonymous

Looks good at a glance, but this needs someone else to review :)

#3

Simple and awesome patch. Solves sorting issues on case priority (weight sorting makes more sense than name sorting).
I also added a missing help text on a project relationship.

AttachmentSize
998122-3-state-relationships-and-weight.patch 2.33 KB

#4

Patch #3 working for me on D6, though now I need to find the equivalent for Priority Weight sorting ... :D