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:
@@ -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' );
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user