]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Пагинация и сортировка
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 8 Oct 2025 07:38:28 +0000 (10:38 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 8 Oct 2025 07:38:28 +0000 (10:38 +0300)
erp24/controllers/AnalystsBusinessOperationsController.php

index 709f7cfe4010e356929e277113a74b598fabfdca..7802b88df49bdee4982192869037da19dae5959a 100644 (file)
@@ -43,16 +43,16 @@ class AnalystsBusinessOperationsController extends Controller
     {
         $dataProvider = new ActiveDataProvider([
             'query' => AnalystsBusinessOperations::find()->with('typeRel'),
-            /*
+
             'pagination' => [
                 'pageSize' => 50
             ],
             'sort' => [
                 'defaultOrder' => [
-                    'id' => SORT_DESC,
+                    'name' => SORT_ASC,
                 ]
             ],
-            */
+
         ]);
 
         return $this->render('index', [