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

Manually assigning or removing a teacher role to a user does not automatically reflect in course search screens

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6.1
    • Fix Version/s: None
    • Component/s: Caching, Course, Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      After you manually assign or remove a teacher from a course, the course listing screen does not update the teacher names with your latest changes.

      Steps to reproduce this issue:
      1. In a course, manually assign the teacher role to a single user
      2. Browse the courses (either via expanding categories or a quick search for the course) and take note of who is listed as the teacher of the course. eg. via http://yourmoodle.com/course/index.php

      Expected behaviour:
      The teacher listed for the course would immediately reflect the manual enrolment just created.

      Actual behaviour:
      The teacher(s) listed for the course remain unchanged.

      A further test is to remove a teacher already manually assigned and check the course listing screen to see that the teacher is still listed for the course.

      Workaround:
      You can fix this by purging all caches, either via the gui, or command line (/usr/bin/php yourmoodle/admin/cli/purge_caches.php).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mcwoods Michael Woods
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: