]> git.koha-community.org Git - koha.git/commit
Fix for Bug 6696, New category button broken when no categories defined
authorOwen Leonard <oleonard@myacpl.org>
Wed, 10 Aug 2011 15:44:37 +0000 (11:44 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Fri, 2 Sep 2011 19:10:27 +0000 (15:10 -0400)
commit95e47cd9490f3471cc5f90039fa90910684107ef
tree193aa5b1565d28d1331c578e14be92b78963d6ce
parentc03df35867e6df5d2ce45d6423434c6fceddd079
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

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a94a9f745556d42e5018695dbaa70a72129cc993)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt