Opened 8 years ago

#7318 new defect

solution for json problem inside the ticketext.js file (tested on trac 0.12)

Reported by: evb Owned by: Takanori Suzuki
Priority: normal Component: TicketExtPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.12


I did apply following patch to the file ticketext.js to get it working : (see also the other ticket #7296 for another problem when working with trac 0.12)

Line 151 : correction typos

var isProceed = confirm(_("Apply the template to the description.\nThe description will be cleared, are you sure?"));

Line 182 : correction in treating json result

        type: "GET",
        url: reqUrl,
        async: false,
        success: function(jsonData){
            var responseData;
            /*if (typeof(jsonData) == "string") {
                responseData = eval("(" + jsonData + ")");
            } else {
                responseData = eval("(" + jsonData.responseText + ")");
            responseData = jsonData;

I don't understand how the original code did work once? jsonData.responseText is no member of the object... Or am I missing something here?

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Takanori Suzuki.

Add Comment

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

Note: See TracTickets for help on using tickets.