diff --git a/.upgradenotes/MDL-85433-2025060303222827.yml b/.upgradenotes/MDL-85433-2025060303222827.yml new file mode 100644 index 00000000000..2a3b1cffe92 --- /dev/null +++ b/.upgradenotes/MDL-85433-2025060303222827.yml @@ -0,0 +1,9 @@ +issueNumber: MDL-85433 +notes: + core_course: + - message: >- + The 'Show description' checkbox is now present in all course formats. + Activity descriptions can be displayed via the Additional activities block + (formerly the Main menu block), regardless of whether the course + format's has_view_page() function returns false. + type: changed diff --git a/course/moodleform_mod.php b/course/moodleform_mod.php index 1e885937d64..802f21438e4 100644 --- a/course/moodleform_mod.php +++ b/course/moodleform_mod.php @@ -1009,8 +1009,7 @@ abstract class moodleform_mod extends moodleform { } // If the 'show description' feature is enabled, this checkbox appears below the intro. - // We want to hide that when using the singleactivity course format because it is confusing. - if ($this->_features->showdescription && $this->courseformat->has_view_page()) { + if ($this->_features->showdescription) { $mform->addElement('advcheckbox', 'showdescription', get_string('showdescription')); $mform->addHelpButton('showdescription', 'showdescription'); } @@ -1043,8 +1042,7 @@ abstract class moodleform_mod extends moodleform { $buttonarray = array(); // Label for the submit button to return to the course. - // Ignore this button in single activity format because it is confusing. - if ($submit2label !== false && $this->courseformat->has_view_page()) { + if ($submit2label !== false) { $buttonarray[] = &$mform->createElement('submit', 'submitbutton2', $submit2label); }