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

DB exception when force deleting modules.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.2.1
    • 2.2
    • Course
    • None
    • Any
    • MOODLE_22_STABLE
    • MOODLE_22_STABLE
    • w52_MDL-30934_m23_modules
    • Hide

      Change 'module' to 'modules' in moodlelib.php

      Show
      Change 'module' to 'modules' in moodlelib.php
    • Hide

      1/ create a new course
      2/ add instance of mod_folder for example
      3/ add some other activities
      4/ delete /mod/folder directory
      5/ delete the course

      Show
      1/ create a new course 2/ add instance of mod_folder for example 3/ add some other activities 4/ delete /mod/folder directory 5/ delete the course

      NOTE: v2.2 (commit: 929c26ccf1cb483149d56c1961ed8ad655437463)
      -------------------------------------------------------------
      If the execution reaches line 4401 of moodlelib.php:

      if ($module = $DB->get_record('module', array('id'=>$cm->module))) {

      an exception will be thrown after the statement since there is no table named 'module'. I believe the table name should be 'modules' instead of 'module'.

            skodak Petr Skoda
            rajivnavada Rajiv Navada
            Sam Hemelryk Sam Hemelryk
            Tim Barker Tim Barker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.