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

Deleting a course that's been starred causes ' invalidrecord: Can't find data record in database table course.' error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.6.5, 3.7
    • Fix Version/s: None
    • Component/s: Dashboard (My home)
    • Labels:
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE

      Description

      If a user starred a course that is then deleted, it appears no cleanup is done in the 'mdl_favourite' table to remove the reference to that course.

      When an affected user views their dashboard they get a ' invalidrecord: Can't find data record in database table course.' error as the Starred courses block tries to retrieve the deleted course.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jaked Jake Dallimore
                Reporter:
                247910 Neil Stapleton
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: