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

Starred courses remain starred (in Starred Courses block) after unenrollment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.3, 3.7
    • Fix Version/s: None
    • Component/s: Blocks, Dashboard (My home)
    • Labels:
    • Testing Instructions:
      Hide

      1. Log in as admin.
      2. Create a new course (C1), set visibility to "Hide".
      3. Enrol yourself as student in course C1.
      4. Navigate to the Dashboard.
      5. In the Course Overview block, star C1.
      6. In the "Course overview" block, filter by "Starred" and verify that C1 is listed there.
      7. Navigate back to C1, and unenrol yourself.
      8. Return to the Dashboard.
      9. In the "Course overview" block, filter by "Starred" and verify that C1 is not listed there.

      Show
      1. Log in as admin. 2. Create a new course (C1), set visibility to "Hide". 3. Enrol yourself as student in course C1. 4. Navigate to the Dashboard. 5. In the Course Overview block, star C1. 6. In the "Course overview" block, filter by "Starred" and verify that C1 is listed there. 7. Navigate back to C1, and unenrol yourself. 8. Return to the Dashboard. 9. In the "Course overview" block, filter by "Starred" and verify that C1 is not listed there.
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull Master Branch:
      MDL-65363-starred-courses-only-include-enroled-courses

      Description

      Even after a user is unenrolled from a starred course, that course remains in the Starred Courses block. This is confusing. If the user doesn't have access to this course, it should no longer remain in the Starred Courses block.

      To reproduce:

      1. Manager 1 enrolls Student 1 into Course A (with student role)
      2. Student 1 logs in and "stars" Course A. It now appears in the Starred Courses block (and the Course Overview block)
      3. Manage 1 unenrolls Student 1 from Course A.
      4. Student 1 logs in and no longer sees Course A in Course Overview, but still sees it in the Starred Courses block, even though the student can no longer access this course.

      I suppose there might be some logic in starred courses continuing to appear after unenrollment from them, but I believe this is confusing to users.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bnwinsf Brian Warling
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 minute
                  1m