#74 - Sort Ticket Priority properlyClosed
Currently when sorted its sorted alphabeticaly |
|
| Milestone: |
25.02 - Stable - Due: 2025-02-28
|
|---|---|
| Assigned To: |
Johnny
|
| Created Date: | 2025-02-12 18:49:05 |
| Closed Date: | 2025-02-12 18:49:50 |
| Discussion Link: | https://forum.itflow.org/d/1513-priority-sort-does-it-alphabetically |
Johnny
Comments 2
https://github.com/itflow-org/itflow/commit/b8d17be0153376053938892637428009844fd4c8
Fixed
ORDER BYCASEWHEN '$sort' = 'scheduled_ticket_priority' THENCASE ticket_priorityWHEN 'High' THEN 1WHEN 'Medium' THEN 2WHEN 'Low' THEN 3ELSE 4 -- Optional: for unexpected priority valuesENDELSE NULLEND $order,$sort $order -- Apply normal sorting by $sort and $orderLIMIT $record_from, $record_to"