Opened 3 years ago

Closed 3 years ago

#8567 closed defect (fixed)

javascript error when deleting test plans

Reported by: mkc Owned by: seccanj
Priority: normal Component: TestManagerForTracPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


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 3 years ago by seccanj

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.


comment:2 Changed 3 years ago by seccanj

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

Fixed with 1.4.4.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from seccanj. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.