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

Hidden participants are visible in metacourses

    Details

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

      Description

      Hidden participants appear as visible in metacourses.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            brodock Gabriel Mazetto added a comment -

            I can confirm this is a bug.

            Show
            brodock Gabriel Mazetto added a comment - I can confirm this is a bug.
            Hide
            ppollet 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
            ppollet 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
            ppollet Patrick Pollet added a comment -

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

            Show
            ppollet Patrick Pollet added a comment - small patch to lib/moodlelib.php/sync_metacourse to fix MDL-18050
            Hide
            skodak Petr Skoda 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
            skodak Petr Skoda 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: