Skip to content

Commit

Permalink
Fixed issue #12192: Quotas page missing pagination - only 10 quotas v…
Browse files Browse the repository at this point in the history
…isible (#660)

+1 for the parameters pagination :)
  • Loading branch information
TonisOrmisson authored and Shnoulle committed Mar 10, 2017
1 parent 4ae6395 commit baf1d27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion application/controllers/admin/quotas.php
Expand Up @@ -161,7 +161,12 @@ function index($iSurveyId, $quickreport = false)
$totalcompleted = 0;
$csvoutput = array();

$aData['oDataProvider'] = new CArrayDataProvider($oSurvey->quotas);
$aData['oDataProvider'] = new CArrayDataProvider($oSurvey->quotas,array(
'pagination' => array(
'pageSize' => 20,
'pageVar' => 'page'
),
));

//if there are quotas let's proceed
$aViewUrls['output'] = '';
Expand Down
2 changes: 0 additions & 2 deletions application/views/admin/quotas/viewquotas_view.php
Expand Up @@ -35,8 +35,6 @@
'dataProvider' => $oDataProvider,
'id' => 'quota-grid',
'emptyText'=>gT('No quotas'),
'enablePagination'=>false,
'template' => '{items}',
'columns' => array(
array(
'id'=>'id',
Expand Down

0 comments on commit baf1d27

Please sign in to comment.