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

External Database, can't build courses.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.0
    • 2.0
    • Enrolments
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Easy

      Line 474 of the External Database enrollment type has incorrect logic when determining whether to build courses.

      if (!$this->get_config('dbtype') or !$this->get_config('dbhost') or $this->get_config('newcoursetable') or $this->get_config('newcoursefullname') or $this->get_config('newcourseshortname'))

      { return; }

      should be:
      if (!$this->get_config('dbtype') or !$this->get_config('dbhost') or !$this->get_config('newcoursetable') or !$this->get_config('newcoursefullname') or !$this->get_config('newcourseshortname')) { return; }

      As it stands now, if those fields AREN'T empty, it will skip building courses, and do nothing. If they ARE empty, it will try to build the course, but fail because those fields are empty.

            skodak Petr Skoda
            moerderin Nick Thompson (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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