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

Fields not read from external database

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.7.1, 1.7.2, 1.8
    • 1.7
    • Authentication, Enrolments
    • None
    • Windows XP, MySQL 5.0, MSSQL2000, Moodle 1.7
    • MySQL, Microsoft SQL
    • MOODLE_17_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE

      When using external authentication I found out that the authentication module did not retrieve the database fields from the server.

      I had to change line 110 in auth/db/lib.php from:
      $result["$field"] = addslashes(stripslashes($rs->fields[0]));

      to:
      $result["$field"] = addslashes(stripslashes($rs->fields[$pcfg["field_map_$field"]]));

      After that authentication with the external database worked fine.

      I also had a similar problem in the database enrolment module (enrol/database/enrol.php) where I also had to change the field access from index to id.

      http://moodle.org/mod/forum/discuss.php?d=59540

            martinlanghoff Martín Langhoff (Inactive)
            gregorst Gregor Stritzinger (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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