Modify

Opened 6 years ago

Closed 6 years ago

#8567 closed defect (fixed)

javascript error when deleting test plans

Reported by: Michael Ching Owned by: Roberto Longobardi
Priority: normal Component: TestManagerForTracPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

When attempting to remove a Test Plan, clicking the X button results in no action and the javascript console showing: "function _ is not defined".

It appears that _("...") style quoting is being used in the testmanager.js file in a few places.

I am not familiar enough with javascript to know if this is supposed to work (I assume it is meant to be for localization?), but adding a dummy function declaration to the top of the .js file fixed this for me:

function _(str) {
    return str
}

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by Roberto Longobardi

Hi, thanks for reporting this.

Actually the code should work on both 0.12 (with internationalization support) and 0.11, but of course I missed something here :-)

I'll deliver the fix asap, probably next week.

Ciao, Roberto

comment:2 Changed 6 years ago by Roberto Longobardi

Resolution: fixed
Status: newclosed

Fixed with 1.4.4.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Roberto Longobardi.
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.