Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-2901

Questionnaire: duplicate value code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.4
    • 2.0.2
    • Module: Questionnaire
    • None
    • PostgreSQL
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      I submitted an instance of a questionnaire and then selected the 'All your responses' tab.

      All the questions after the second question are displayed as '2', which seems strange.

      As the editing teacher I selected the 'All responses (1)' tab

      This resulted in some error code and strange display.

      (Some of the questions in this questionnaire were given the same name,and the user making the response exists in multiple groups).

      The code displayed is:

      Did you remember to make the first column something unique in your call to get_records? Duplicate value '1' found in column 'id'.
      line 699 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
      line 163 of /mod/questionnaire/report.php: call to pgsql_native_moodle_database->get_records_sql()
      Did you remember to make the first column something unique in your call to get_records? Duplicate value '1' found in column 'id'.

      I have fixed this and attach a patch for review.

        1. viewallresponse.JPG
          161 kB
          Jenny Gray
        2. wip514.patch
          4 kB
          Jenny Gray

            jenny-gray Jenny Gray
            jenny-gray Jenny Gray
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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