fix bug sélecteur author

This commit is contained in:
Fred Tempez 2024-01-21 11:18:05 +01:00
parent 3885fbc475
commit efcfcc6287
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
<div class="col5">
<?php echo template::select('courseEditAuthor', $module::$courseTeachers, [
'label' => 'Auteur',
'value' => $this->getdata(['course', $this->getUrl(2), 'author'])
'selected' => $this->getdata(['course', $this->getUrl(2), 'author'])
]); ?>
</div>
</div>

View File

@ -64,7 +64,7 @@
<div class="col5">
<?php echo template::select('courseManageAuthor', $module::$courseTeachers, [
'label' => 'Auteur',
'value' => $this->getdata(['course', $this->getUrl(2), 'author']),
'selected' => $this->getdata(['course', $this->getUrl(2), 'author']),
'disabled' => true,
]); ?>
</div>