Ticket #8567 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

javascript error when deleting test plans

Reported by: mkc Assigned to: 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

Change History

03/04/11 12:06:50 changed 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

03/11/11 10:45:14 changed by seccanj

  • status changed from new to closed.
  • resolution set to fixed.

Fixed with 1.4.4.


Add/Change #8567 (javascript error when deleting test plans)




Change Properties
Action