Modify

Opened 4 years ago

Closed 4 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

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

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

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

Fixed with 1.4.4.

Add Comment

Modify Ticket

Action
as closed The owner will remain seccanj.
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.