From 0566ee73a3696ea05f355b20504076f4feb92f51 Mon Sep 17 00:00:00 2001 From: Stefan Hanauska Date: Mon, 22 Jan 2024 07:20:11 +0100 Subject: [PATCH] MBS-8675: Always show manual completion --- classes/completion/custom_completion.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/classes/completion/custom_completion.php b/classes/completion/custom_completion.php index 6b1f4c9..0f6f713 100644 --- a/classes/completion/custom_completion.php +++ b/classes/completion/custom_completion.php @@ -173,4 +173,13 @@ public function get_sort_order(): array { 'completion_with_all_places', ]; } + + /** + * Show the manual completion or not regardless of the course's showcompletionconditions setting. + * + * @return bool + */ + public function manual_completion_always_shown(): bool { + return true; + } }