Quellcode durchsuchen

user list page pagination fix

Oleg K vor 4 Jahren
Ursprung
Commit
79268347eb
2 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  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',