Course config: Fix issue preventing tags and video_url to appear when allow_teachers_to_classes is enabled

pull/2606/head
Yannick Warnier 7 years ago
parent 1b9dc84a92
commit 37b00ec534
  1. 2
      main/course_info/infocours.php

@ -129,7 +129,7 @@ $form->applyFilter('department_url', 'html_filter');
$extra_field = new ExtraField('course'); $extra_field = new ExtraField('course');
$extraFieldAdminPermissions = false; $extraFieldAdminPermissions = false;
$showOnlyTheseFields = []; $showOnlyTheseFields = ['tags', 'video_url'];
if (api_get_configuration_value('allow_teachers_to_classes') === true) { if (api_get_configuration_value('allow_teachers_to_classes') === true) {
$extraFieldAdminPermissions = true; $extraFieldAdminPermissions = true;
$showOnlyTheseFields[] = 'course_hours_duration'; $showOnlyTheseFields[] = 'course_hours_duration';

Loading…
Cancel
Save