瀏覽代碼

Clients : garder le tri en cours lors d'une suppression de compte

refactoring
keun 6 年之前
父節點
當前提交
f9168af0ed
共有 2 個文件被更改,包括 6 次插入3 次删除
  1. +4
    -1
      backend/controllers/UserController.php
  2. +2
    -2
      backend/views/user/index.php

+ 4
- 1
backend/controllers/UserController.php 查看文件

@@ -156,7 +156,10 @@ class UserController extends BackendController {
throw new \yii\web\NotFoundHttpException('L\'enregistrement UserEtablissement est introuvable', 404) ;
}
$this->redirect(['index']);
$params = Yii::$app->getRequest()->getQueryParams() ;
unset($params['id']) ;
$this->redirect(array_merge(['index'],$params));
}

public function actionMail($id_point_vente = 0) {

+ 2
- 2
backend/views/user/index.php 查看文件

@@ -164,8 +164,8 @@ $this->params['breadcrumbs'][] = $this->title;
}
},
'delete' => function($url, $model) {
if($model['actif']) {
return Html::a('<span class="glyphicon glyphicon-trash"></span> Supprimer', Yii::$app->urlManager->createUrl(['user/delete','id' => $model['user_id']]), [
if($model['actif']) {
return Html::a('<span class="glyphicon glyphicon-trash"></span> Supprimer', Yii::$app->urlManager->createUrl(array_merge(['user/delete','id' => $model['user_id']], Yii::$app->getRequest()->getQueryParams())), [
'title' => Yii::t('app', 'Supprimer'), 'class' => 'btn btn-default'
]);
}

Loading…
取消
儲存