Skip to content

Commit

Permalink
MDL-82244 course: use site default course visibility in external call.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Jan 13, 2025
1 parent 71f5b52 commit a40a409
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion course/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,8 @@ public static function create_courses_parameters() {
'are activity report shown (yes = 1, no =0)', VALUE_DEFAULT,
$courseconfig->showreports),
'visible' => new external_value(PARAM_INT,
'1: available to student, 0:not available', VALUE_OPTIONAL),
'1: available to student, 0:not available', VALUE_DEFAULT,
$courseconfig->visible),
'hiddensections' => new external_value(PARAM_INT,
'(deprecated, use courseformatoptions) How the hidden sections in the course are displayed to students',
VALUE_OPTIONAL),
Expand Down

0 comments on commit a40a409

Please sign in to comment.