Modify ↓
#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 |
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 (5)
comment:1 Changed 18 months ago by rjollos
- Cc rjollos added
comment:2 Changed 18 months ago by robguttman
- Status changed from new to assigned
comment:3 Changed 14 months ago by robguttman
comment:4 Changed 14 months 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 14 months ago by robguttman
- Trac Release changed from 0.12 to 0.11
Note, only patched on 0.11 branch.
Note: See
TracTickets for help on using
tickets.


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