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

In External Database plugin, optional param: newcourseidnumber is treated like required param resulting in logic error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Enrolments
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      The optional param: newcourseidnumber is treated like a required parameter.

      In line 491 change:
      $fields = array($fullname, $shortname, $idnumber);

      to
      $fields = array($fullname, $shortname);

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            moerderin Nick Thompson
            Tester:
            Nobody
            Participants:
            Component watchers:
            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:
              Fix Release Date:
              24/Nov/10