do not export empty groups

This commit is contained in:
Uwe Steinmann 2020-09-29 17:07:16 +02:00
parent 7bd9f4777a
commit 7862f5bc80
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@
Changes in version 5.1.21
--------------------------------------------------------------------------------
- new api to fulltext search
- do offer to export users of group if there are no users
--------------------------------------------------------------------------------
Changes in version 5.1.20

View File

@ -164,7 +164,8 @@ $(document).ready( function() {
<ul class="dropdown-menu">
<?php
echo '<li><a href="../out/out.RemoveGroup.php?groupid='.$selgroup->getID().'"><i class="fa fa-remove"></i> '.getMLText("rm_group").'</a><li>';
echo '<li><a href="../op/op.UserListCsv.php?groupid='.$selgroup->getID().'"><i class="fa fa-download"></i> '.getMLText("export_user_list_csv").'</a><li>';
if($selgroup->getUsers())
echo '<li><a href="../op/op.UserListCsv.php?groupid='.$selgroup->getID().'"><i class="fa fa-download"></i> '.getMLText("export_user_list_csv").'</a><li>';
?>
</ul>
</div>