Modify

Opened 10 years ago

Closed 10 years ago

#2735 closed defect (worksforme)

The status and summary of a wrong ticket is applied.

Reported by: anonymous Owned by: Norbert Ferchen
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 10 years ago by ghama

Cc: ghama added; anonymous removed

comment:2 Changed 10 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 10 years ago by ghama

and, import of Ticket is also needed

from trac.ticket import Ticket

comment:4 Changed 10 years ago by Norbert Ferchen

Resolution: worksforme
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Norbert Ferchen.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.