Modify

Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#9605 closed defect (fixed)

Uncaught TypeError: Cannot call method 'slice' of undefined

Reported by: Jan Beilicke Owned by: Rob Guttman
Priority: normal Component: DynamicFieldsPlugin
Severity: normal Keywords:
Cc: Ryan J Ollos Trac Release: 0.11

Description

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

     
    172172
    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) : '');
    176176};
    177177
    178178// move_field

Attachments (0)

Change History (7)

comment:1 Changed 13 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; anonymous removed

comment:2 Changed 13 years ago by Rob Guttman

Status: newassigned

comment:3 Changed 13 years ago by Rob Guttman

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

comment:4 Changed 13 years ago by Rob Guttman

Resolution: fixed
Status: assignedclosed

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

comment:5 Changed 13 years ago by Rob Guttman

Trac Release: 0.120.11

Note, only patched on 0.11 branch.

comment:6 Changed 11 years ago by Ryan J Ollos

In 13650:

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

comment:7 Changed 10 years ago by Ryan J Ollos

#12207 closed as a duplicate.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Rob Guttman.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.