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

moodle_course_create_courses using undefined variables

    XMLWordPrintable

    Details

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

      Description

      A commit made by Petr on 17th of September to fix undefined course config variables appears to have been taken care of wrong.

      The $courseconfig variable didn't exist in the create_courses function because it appears to have been accidentally declared in the create_courses_parameters function instead.

      This:
      $courseconfig = get_config('moodlecourse'); //needed for many default values
      Needs to be moved from the parameters function to the create_courses.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jerome Jérôme Mouneyrac
              Reporter:
              aolley Adam Olley
              Tester:
              Nobody
              Participants:
              Component watchers:
              Juan Leyva, 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: