Bug 16532: Groups showing empty tables if no groups defined

EDIT: Same change for libraries

To test:
1) Go to Admin -> Libraries and Groups
2) Notice empty tables if nothing defined
3) Apply patch and refresh page
4) Empty tables should not show
5) Add a new group
6) Confirm table shows correctly

Sponsored-by: Catalyst IT

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Aleisha 2016-05-17 05:04:08 +00:00 committed by Brendan Gallagher
parent bae0eb9ab7
commit ca36a74c86

View file

@ -218,7 +218,7 @@ tinyMCE.init({
[% IF op == 'list' %]
<h3>Libraries</h3>
[% IF libraries %]
[% IF libraries.count %]
<table id="branchest">
<thead>
<tr>
@ -283,7 +283,7 @@ tinyMCE.init({
[% IF group_types %]
[% FOREACH group_type IN group_types %]
<h3>[% IF group_type.categorytype == 'properties' %]Properties[% ELSIF group_type.categorytype == 'searchdomain' %]Search domain[% END %]</h3>
[% IF group_type.categories %]
[% IF group_type.categories.size %]
<table>
<thead>
<tr>