Edgewall Software

Ticket #7512: 7512-report8-r7613.patch

File 7512-report8-r7613.patch, 462 bytes (added by rblank, 4 years ago)

Patch against 0.11-stable fixing sorting by owner in report 8

  • trac/db_default.py

    diff --git a/trac/db_default.py b/trac/db_default.py
    a b  
    323323  FROM ticket t 
    324324  LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' 
    325325  WHERE status <> 'closed'  
    326   ORDER BY (owner = $USER) DESC, """ + db.cast('p.value', 'int') +  
    327   """, milestone, t.type, time 
     326  ORDER BY (COALESCE(owner, '') = $USER) DESC, """ 
     327  + db.cast('p.value', 'int') + """, milestone, t.type, time 
    328328""")) 
    329329 
    330330