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

Course contacts cache should be purged when role is renamed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0, 3.1
    • 3.0.1
    • Caching, Course
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE
    • MDL-52370-master
    • Hide

      Site level changes:

      1. As admin
      2. In role settings, change the name of a role which is in course contacts
      3. View the course in course listings
      4. VERIFY: The name of the role displayed in course contacts matches the changed name immediately

      Course level changes:

      1. As teacher
      2. In course settings, change the name of a role which is in course contacts
      3. View the course in course listings
      4. VERIFY: The name of the role displayed in course contacts matches the changed name immediately
      Show
      Site level changes: As admin In role settings, change the name of a role which is in course contacts View the course in course listings VERIFY: The name of the role displayed in course contacts matches the changed name immediately Course level changes: As teacher In course settings, change the name of a role which is in course contacts View the course in course listings VERIFY: The name of the role displayed in course contacts matches the changed name immediately

    Description

      Steps to reproduce:

      1. In course settings, change the name of a role
      2. View the course in course listings
      3. Examine the course contacts

      Expected results:

      • When user changes the name of a role it should be reflected in UI immediately

      Actual results:

      • Caching means the course contacts displays out of date info

      Analysis:
      Likely can be solved by calling coursecat::role_assignment_changed($ra->roleid, $context); when a role is renamed in the course form.

      Attachments

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              poltawski Dan Poltawski
              cameron1729 cameron1729
              David Monllaó David Monllaó
              Ryan Wyllie Ryan Wyllie
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                21/Dec/15