Sfoglia il codice sorgente

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

prodstable
keun 7 anni fa
parent
commit
b9112d364a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      backend/views/layouts/main.php

+ 1
- 1
backend/views/layouts/main.php Vedi 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…
Annulla
Salva