Created attachment 4923 [details] screenshot The button 'New category' appears only as link when I have no patron categories defined in administration. Once I have defined a first category the buttons shows up as normal.
javascript error probably related to the problem: table.tBodies[0] is undefined error source line: [Bei diesem Fehler anhalten] (function($){$.extend({tablesorter:new...g Zebra widget",time);}}});})(jQuery);...
Created attachment 4949 [details] [review] Proposed fix The javascript tablesorter will trigger an error if we try to apply it to a table with no <tbody>. That error prevented the YUI button script to complete properly, hence the broken button. This patch hides the table in cases where there are no categories and displays an error message instead.
Created attachment 4971 [details] [review] [SIGNED-OFF] Fix for Bug 6696, New category button broken when no categories defined The javascript tablesorter will trigger an error if we try to apply it to a table with no <tbody>. That error prevented the YUI button script to complete properly, hence the broken button. This patch hides the table in cases where there are no categories and displays an error message instead. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> - Deleted all patron categories and checked button was broken - Applied patch and checked again - button shows up - Nice: There is a note now that you have to create categories
Template only change, easy to read, marking as Passed QA
Pushed please test
The fix for this bug was published in the 3.4.5 release. If you were the reporter of this bug, please take time to verify the fix and update the status of this bug report accordingly. If the bug is fixed to your satisfaction, please close this report.