Ver código fonte

Correction bug id_etablissement liste emails utilisateurs

prodstable
keun 8 anos atrás
pai
commit
e54274bcfd
1 arquivos alterados com 5 adições e 3 exclusões
  1. +5
    -3
      backend/controllers/UserController.php

+ 5
- 3
backend/controllers/UserController.php Ver arquivo

@@ -157,12 +157,14 @@ PS : Si vous ne souhaitez plus recevoir ces emails, rendez-vous dans votre compt
->select('*')
->from('user, user_etablissement')
->where('user.id = user_etablissement.id_user')
->andWhere('user_etablissement.id_etablissement = '.Yii::$app->user->identity->id)
->andWhere('user_etablissement.id_etablissement = '.Yii::$app->user->identity->id_etablissement)
->all() ;
$arr_users = [] ;
foreach($users as $u)
$arr_users[] = $u->email ;
foreach($users as $u) {
if(isset($u->email))
$arr_users[] = $u->email ;
}
return $this->render('liste_mails', [
//'model' => $model,

Carregando…
Cancelar
Salvar