Skip to content

Commit

Permalink
'activitychooserbuttonactivity' needs the data that is in the section…
Browse files Browse the repository at this point in the history
… object.
  • Loading branch information
gjb2048 committed Jun 15, 2023
1 parent 870d4f1 commit 4f097ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/output/courseformat/content/section/cmlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public function export_for_template(\renderer_base $output): \stdClass {
$data = parent::export_for_template($output);
$data->editing = $PAGE->user_is_editing();

// Section information for the 'activitychooserbuttonactivity'.
$data->num = $this->section->section ?? '0';
$data->sectionreturn = $this->format->get_section_number();

return $data;
}
}

0 comments on commit 4f097ce

Please sign in to comment.