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

Forumng get_modinfo_special correction for shared activities processing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.10
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      The forum function get_modinfo_special has some special processing that is only meant for the OU shared activities course.

      If a course has no course modules for some reason, then the current check is insufficient to distinguish between this type of course and a shared activities course.

      A simple change in the code will solve this:

      if (class_exists('ouflags') && !count($modinfo->cms)) {

      change to

      if (class_exists('ouflags') && $course->idnumber==='!sharedactivities') {

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: