Opened 3 years ago

Closed 2 years ago

Last modified 6 months ago

#9605 closed defect (fixed)

Uncaught TypeError: Cannot call method 'slice' of undefined

Reported by: jbeilicke Owned by: robguttman
Priority: normal Component: DynamicFieldsPlugin
Severity: normal Keywords:
Cc: rjollos Trac Release: 0.11


I just updated my trac installation to jQuery 1.7.1 and DynamicFieldsPlugin r11034 (0.11 branch). When loading a ticket, I am getting the mentioned error in layout.js:175. In the page there are some empty table headers without ids that seem to trigger the error.

This patch seems to work:

  • 0.11/dynfields/htdocs/layout.js

    173173// get_field 
    174174header_layout.get_field = function(th){ 
    175     return th.attr('id').slice(2); 
     175    return (th.attr('id') ? th.attr('id').slice(2) : ''); 
    178178// move_field 

Attachments (0)

Change History (6)

comment:1 Changed 3 years ago by rjollos

  • Cc rjollos added

comment:2 Changed 3 years ago by robguttman

  • Status changed from new to assigned

comment:3 Changed 2 years ago by robguttman

(In [11520]) refs #9605: thanks to jbeilicke for patch for JS undefined issue.

comment:4 Changed 2 years ago by robguttman

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

Thanks for this patch - and sorry it took so long to get to it.

comment:5 Changed 2 years ago by robguttman

  • Trac Release changed from 0.12 to 0.11

Note, only patched on 0.11 branch.

comment:6 Changed 6 months ago by rjollos

In 13650:

Bump version to 1.2.4. Refs #11378, #11118, #11523, #10126, #9605, #9986, #9996, #8971.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from robguttman. 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.