Modify

Opened 7 years ago

Closed 7 years ago

#2735 closed defect (worksforme)

The status and summary of a wrong ticket is applied.

Reported by: anonymous Owned by: nferchen
Priority: normal Component: BackRefPatch
Severity: normal Keywords:
Cc: ghama Trac Release: 0.10

Description

The patch to ticket/web_ui.py is wrong. Maybe below is correct, isn't it?

near line 601:

if rtype == "ticket":
    t = Ticket(self.env, rid)
    ref.update({
        "shortname': '#%i' % rid,
        'summary': t['summary'],
        'closed': t['status'] == 'closed'
        })

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by ghama

  • Cc ghama added

comment:2 follow-up: Changed 7 years ago by ghama

one more modification needed in wiki/web_ui.py

near line 519:

if rtype == "ticket":
    t = Ticket(self.env, rid)
    ref.update({
        "shortname': '#%i' % rid,
        'summary': t['summary'],
        'closed': t['status'] == 'closed'
        })

comment:3 in reply to: ↑ 2 Changed 7 years ago by ghama

and, import of Ticket is also needed

from trac.ticket import Ticket

comment:4 Changed 7 years ago by nferchen

  • Resolution set to worksforme
  • Status changed from new to closed

Hallo Ghama, I could not follow your changes. The line numbers does not match with the 0.10.4 (last stable in 0.10). You mixed up quote and double-quote for the string "shortname'. The import of Ticket was done in line 26. Please give me further information about the patch you tried.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.