瀏覽代碼

Clients : possibilité d'ordonner par nom / prénom

refactoring
keun 6 年之前
父節點
當前提交
0539cc4922
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      backend/controllers/UserController.php

+ 3
- 2
backend/controllers/UserController.php 查看文件

@@ -43,9 +43,10 @@ class UserController extends BackendController {
$query = User::findBy($params);
$dataProvider = new ActiveDataProvider([
'query' => $query
'query' => $query,
'sort' => ['attributes' => ['nom','prenom']],
]);
$etablissement = Etablissement::find()
->where(['id' => Yii::$app->user->identity->id_etablissement])
->one();

Loading…
取消
儲存