Plugin: BBB: Fix ordering to have the last conferencies on the first page -refs BT#20841

pull/4786/head
NicoDucou 3 years ago
parent ae7c8a2a30
commit 7eec521716
  1. 5
      plugin/bbb/lib/bbb.lib.php
  2. 6
      plugin/bbb/listing.php

@ -999,7 +999,8 @@ class bbb
$isAdminReport = false,
$dateRange = [],
$start = 0,
$limit = 0
$limit = 0,
$order = "ASC"
) {
$em = Database::getManager();
$manager = $this->isConferenceManager();
@ -1061,7 +1062,7 @@ class bbb
);
}
$conditions['order'] = 'created_at ASC';
$conditions['order'] = 'created_at ' . $order;
if ($limit) {
$conditions['limit'] = "$start , $limit";

@ -383,16 +383,14 @@ $meetings = $bbb->getMeetings(
false,
[],
$start,
$limit
$limit,
"DESC"
);
if (empty($meetings)) {
$pageId = 0;
}
if (!empty($meetings)) {
$meetings = array_reverse($meetings);
}
$usersOnline = $bbb->getUsersOnlineInCurrentRoom();
$maxUsers = $bbb->getMaxUsersLimit();
$status = $bbb->isServerRunning();

Loading…
Cancel
Save