Edgewall Software

Ticket #2986: ticketstatus.patch

File ticketstatus.patch, 520 bytes (added by eblot, 6 years ago)

swap status and summary within the SQL request

  • trac/ticket/api.py

     
    161161        if intertrac: 
    162162            return intertrac 
    163163        cursor = formatter.db.cursor() 
    164         cursor.execute("SELECT summary,status FROM ticket WHERE id=%s", 
     164        cursor.execute("SELECT status,summary FROM ticket WHERE id=%s", 
    165165                       (target,)) 
    166166        row = cursor.fetchone() 
    167167        if row: