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

courses I have taught is broken for 1.9

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.9
    • 1.9.10
    • Backup, Course
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      The patch provided by MDL-19880 produces a regression error on Moodle 1.9. The code there passes '' as the parameter for $fields so you get a query that looks like "SELECT FROM mdl_course WHERE id IN (..."

      The solution should be to change line 32 in course/import/activities/mod.php to

      $taught_courses = get_records_list('course', 'id', $tcourseids, 'sortorder', 'id, fullname');

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              trick Alan Trick
              Nobody Nobody
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Oct/10