Moodle
  1. Moodle
  2. MDL-18050

Hidden participants are visible in metacourses

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Rank:
      4973

      Description

      Hidden participants appear as visible in metacourses.

        Issue Links

          Activity

          Hide
          Gabriel Mazetto added a comment -

          I can confirm this is a bug.

          Show
          Gabriel Mazetto added a comment - I can confirm this is a bug.
          Hide
          Patrick Pollet added a comment -

          Hello,

          I have fixed it quite easily in my 1.9.4+ by applying the attached patch to the function sync_metacourse() in lib/moodlelib.php (two lines to change)

          It works nicely when assigning a NEW hidden role attribution to the parent of some metacourses and the non visibility propages itself to all metacourses.

          If the 'target user' has already the role in the metacourses (ie non hidden) you have to remove it from each metacourse and let Moodle complains about 'Role of user \"$a\" was automatically reassigned, please unassign the role in child courses instead.' You will then see that that user is first removed from the metacourse and then reappears with the wanted hidden attribution

          Cheers

          Show
          Patrick Pollet added a comment - Hello, I have fixed it quite easily in my 1.9.4+ by applying the attached patch to the function sync_metacourse() in lib/moodlelib.php (two lines to change) It works nicely when assigning a NEW hidden role attribution to the parent of some metacourses and the non visibility propages itself to all metacourses. If the 'target user' has already the role in the metacourses (ie non hidden) you have to remove it from each metacourse and let Moodle complains about 'Role of user \"$a\" was automatically reassigned, please unassign the role in child courses instead.' You will then see that that user is first removed from the metacourse and then reappears with the wanted hidden attribution Cheers
          Hide
          Patrick Pollet added a comment -

          small patch to lib/moodlelib.php/sync_metacourse to fix MDL-18050

          Show
          Patrick Pollet added a comment - small patch to lib/moodlelib.php/sync_metacourse to fix MDL-18050
          Hide
          Petr Škoda added a comment -

          Hello, Moodle 1.9 is not maintained any more, this should not be a problem in 2.x. Thanks for the report.

          Show
          Petr Škoda added a comment - Hello, Moodle 1.9 is not maintained any more, this should not be a problem in 2.x. Thanks for the report.

            People

            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: