Browse Source

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

prodstable
keun 8 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

@@ -157,7 +157,7 @@ AppAsset::register($this);
<?php elseif(Yii::$app->user->identity->status == User::STATUS_ADMIN): ?>
<?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) {
return Html::encode($model->nom) ;
return $model->nom ;
})) ; ?>
<?php ActiveForm::end(); ?>
<?php endif; ?>

Loading…
Cancel
Save