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

courses I have taught is broken for 1.9

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.9
    • Fix Version/s: 1.9.10
    • Component/s: Backup, Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      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

              • Assignee:
                stronk7 Eloy Lafuente (stronk7)
                Reporter:
                trick Alan Trick
                Tester:
                Nobody
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Oct/10