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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 998122-3-state-relationships-and-weight.patch | 2.33 KB | basvredeling |
| #1 | 998122-1-state-relationships-and-weight.patch | 1.9 KB | hanoii |
| casetracker.weight_handler.patch | 1010 bytes | Grayside |
Comments
Comment #1
hanoiiwent 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.
Comment #2
Grayside commentedLooks good at a glance, but this needs someone else to review :)
Comment #3
basvredelingSimple 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.
Comment #4
asonderer commentedPatch #3 working for me on D6, though now I need to find the equivalent for Priority Weight sorting ... :D