Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-9505

Description (Intro) not shown on Course Page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.12, 4.1.10, 4.2.7
    • Module: Questionnaire
    • None
    • 4.0.1 (Build - 2023051600)
    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE

      The description that is set in the general settings is not displayed on course section even though the checkbox is checked.

      My research shows that this happens due to a condition in the Moodle file lib/modinfolib.php.

      Line 924
      // When there is no modname_get_coursemodule_info function,
      // ... but showdescriptions is enabled, then we use the 'intro',
      // ... and 'introformat' fields in the module table.

      The function "questionnaire_get_coursemodule_info" in mod/questionnaire/lib.php doesn't implement a "showdescription" part

      I added this lines, seen on mod/page

      if ($coursemodule->showdescription)

      { // Convert intro to html. Do not filter cached version, filters run at display time. $info->content = format_module_intro('questionnaire', $questionnaire, $coursemodule->id, false); }

      and it works like expected.

            mchurch Mike Churchward
            dhbwadmin Jan Kristoffer Roth
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.