Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-6363

typo in mod/forum/restorelib.php prevents grouped discussions from being accessible to group after a restore.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.3, 1.6.1
    • Fix Version/s: 1.6.4, 1.7, 1.8
    • Component/s: Forum
    • Labels:
      None
    • Environment:
      All. This is a PHP typo!
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_15_STABLE, MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      see mod/forum/restorelib.php line 219 ish. You should see this...

      $group = backup_getid($restore->backup_unique_code,"group",$discussion->groupid);

      ...it should be this...

      $group = backup_getid($restore->backup_unique_code,"groups",$discussion->groupid);

      ...note: groupS instead of group!

        Attachments

          Activity

            People

            Assignee:
            vyshane Vy-Shane Sin Fat
            Reporter:
            sc283 Si Carter
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              7/Nov/06