Modify ↓
#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
172 172 173 173 // get_field 174 174 header_layout.get_field = function(th){ 175 return th.attr('id').slice(2);175 return (th.attr('id') ? th.attr('id').slice(2) : ''); 176 176 }; 177 177 178 178 // move_field
Attachments (0)
Change History (7)
comment:1 Changed 13 years ago by
Cc: | Ryan J Ollos added; anonymous removed |
---|
comment:2 Changed 13 years ago by
Status: | new → assigned |
---|
comment:3 Changed 13 years ago by
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks for this patch - and sorry it took so long to get to it.
Note: See
TracTickets for help on using
tickets.
(In [11520]) refs #9605: thanks to jbeilicke for patch for JS undefined issue.