Browse Source

Bug encodage liste sélective des établissements dans l'admin

master
keun 7 years ago
parent
commit
b9112d364a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/views/layouts/main.php

+ 1
- 1
backend/views/layouts/main.php View File

<?php elseif(Yii::$app->user->identity->status == User::STATUS_ADMIN): ?> <?php elseif(Yii::$app->user->identity->status == User::STATUS_ADMIN): ?>
<?php $form = ActiveForm::begin(['id' => 'select-etablissement']) ; ?> <?php $form = ActiveForm::begin(['id' => 'select-etablissement']) ; ?>
<?= Html::dropDownList('select_etablissement', Yii::$app->user->identity->id_etablissement, ArrayHelper::map(Etablissement::find()->orderBy('nom ASC')->all(), 'id', function($model, $defaultValue) { <?= Html::dropDownList('select_etablissement', Yii::$app->user->identity->id_etablissement, ArrayHelper::map(Etablissement::find()->orderBy('nom ASC')->all(), 'id', function($model, $defaultValue) {
return Html::encode($model->nom) ;
return $model->nom ;
})) ; ?> })) ; ?>
<?php ActiveForm::end(); ?> <?php ActiveForm::end(); ?>
<?php endif; ?> <?php endif; ?>

Loading…
Cancel
Save