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

Error when attempting to delete a user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Hi Petr,

      During testing today I found a bug when attempting to delete a user using the user_delete_user method in /user/lib.php.
      The errors related to the enrollib.php function user_delete();

      The first issue appears to be just that $DB->get_records_recordset should be $DB->get_recordset_sql.
      Second the names param :meta should probably be :name
      The third problem (as far as I researched) is that ue.courseid isn't a valid field?

      Let me know if there is more I can help with.

      Cheers
      Sam

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            samhemelryk Sam Hemelryk
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10