Group: global export made to xls and not to csv when using xls icon -refs BT#21160

pull/4964/head
NicoDucou 2 years ago
parent 989cc07a84
commit fb9b7c82f4
  1. 15
      main/group/group_overview.php

@ -75,7 +75,18 @@ if (isset($_GET['action'])) {
break;
case 'export_all':
$data = GroupManager::exportCategoriesAndGroupsToArray(null, true);
Export::arrayToCsv($data);
switch ($_GET['type']) {
case 'csv':
Export::arrayToCsv($data);
exit;
break;
case 'xls':
if (!empty($data)) {
Export::arrayToXls($data);
exit;
}
break;
}
exit;
break;
case 'export_pdf':
@ -100,7 +111,7 @@ if (isset($_GET['action'])) {
exit;
}
break;
}
}
break;
case 'export_users':
$data = GroupManager::exportStudentsToArray($groupId, true);

Loading…
Cancel
Save