id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
9605,Uncaught TypeError: Cannot call method 'slice' of undefined,jbeilicke,robguttman,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.\r\n\r\nThis patch seems to work:\r\n\r\n{{{\r\n#!text/x-diff\r\nIndex: 0.11/dynfields/htdocs/layout.js\r\n===================================================================\r\n--- 0.11/dynfields/htdocs/layout.js     (revision 11034)\r\n+++ 0.11/dynfields/htdocs/layout.js     (working copy)\r\n@@ -172_7 +172_7 @@\r\n \r\n // get_field\r\n header_layout.get_field = function(th){\r\n-    return th.attr('id').slice(2);\r\n+    return (th.attr('id') ? th.attr('id').slice(2) : '');\r\n };\r\n \r\n // move_field\r\n}}},defect,closed,normal,DynamicFieldsPlugin,normal,fixed,,rjollos,0.11
