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

Error when attempting to delete a user

    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

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            skodak Petr Skoda added a comment -

            Fixed, thanks a lot for the report!

            Petr Skoda

            Show
            skodak Petr Skoda added a comment - Fixed, thanks a lot for the report! Petr Skoda

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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