Explorar o código

user list page pagination fix

Oleg K %!s(int64=4) %!d(string=hai) anos
pai
achega
79268347eb
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  1. 5 0
      config/web.php
  2. 1 1
      views/user/admin/index.php

+ 5 - 0
config/web.php

@@ -14,6 +14,11 @@ $config = [
         '@bower' => '@vendor/bower-asset',
         '@npm'   => '@vendor/npm-asset',
     ],
+    'container' => [
+        'definitions' => [
+            \yii\widgets\LinkPager::class => \yii\bootstrap4\LinkPager::class,
+        ],
+    ],
     'components' => [
         'request' => [
             // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation

+ 1 - 1
views/user/admin/index.php

@@ -41,7 +41,7 @@ $this->params['breadcrumbs'][] = $this->title;
             'attribute' => 'id',
             'headerOptions' => ['style' => 'width:90px;'], # 90px is sufficient for 5-digit user ids
         ],
-        'username',
+        'uuid',
         'email:email',
         [
             'attribute' => 'registration_ip',