PMC-131 In section Admin->Users->Groups the second page of the list always shows double the corresponding amount of groups

This commit is contained in:
Roly Rudy Gutierrez Pinto
2019-12-12 16:10:44 -04:00
parent 9e8728499f
commit 43ce5470ca
5 changed files with 78 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ class Admin extends Controller
$this->setJSVar( 'CONFIG', $Config );
$this->setJSVar( 'FORMATS', $c->getFormats() );
$this->setJSVar( 'uxTypes', AdminProxy::getUxTypesList( 'list' ) );
$this->setJSVar( 'uxTypes', adminProxy::getUxTypesList( 'list' ) );
G::RenderPage( 'publish', 'extJs' );
}

View File

@@ -233,7 +233,7 @@ class adminProxy extends HttpProxyController
return array('success' => $success, 'users' => $usersAdmin);
}
public function getUxTypesList($type = 'assoc')
public static function getUxTypesList($type = 'assoc')
{
$list = array();

View File

@@ -59,9 +59,7 @@ switch ($_POST['action']) {
$sortDir = isset($_REQUEST["dir"]) ? $_REQUEST["dir"] : "";
global $RBAC;
if ($limit == $start) {
$limit = $limit + $limit;
}
$tasks = new TaskUser();
$aTask = $tasks->getCountAllTaksByGroups();