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>
[% IF op == 'list' %]
<h3>Libraries</h3>
- [% IF libraries %]
+ [% IF libraries.count %]
<table id="branchest">
<thead>
<tr>
[% 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>