Skip to content

Commit

Permalink
Course config: Fix issue preventing tags and video_url to appear when…
Browse files Browse the repository at this point in the history
… allow_teachers_to_classes is enabled
  • Loading branch information
ywarnier committed Jul 26, 2018
1 parent 1b9dc84 commit 37b00ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/course_info/infocours.php
Expand Up @@ -129,7 +129,7 @@ function is_settings_editable()
$extra_field = new ExtraField('course');

$extraFieldAdminPermissions = false;
$showOnlyTheseFields = [];
$showOnlyTheseFields = ['tags', 'video_url'];
if (api_get_configuration_value('allow_teachers_to_classes') === true) {
$extraFieldAdminPermissions = true;
$showOnlyTheseFields[] = 'course_hours_duration';
Expand Down

0 comments on commit 37b00ec

Please sign in to comment.