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

View Responses does not display radio and checkbox results

    XMLWordPrintable

Details

    • MOODLE_17_STABLE, MOODLE_18_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

    Description

      When you view the responses of a questionnaire, it looks fine. But when you click on view all responses, it does not work for types like radio and checkboxes.

      I did some checking and found the problem is from the SQL used in some of the functions.

      1. questionnaire/questiontypes/questiontypes.class.php
      (a) function get_response_single_results($rids=false)

      This function has two SQL statements. The first SQL needs to be fixed. The 'Group By' is currently 'GROUP BY qc.id'
      It has to be 'GROUP BY qc.id,qc.content'. The qc.content part is missing.

      (b) function get_response_multiple_results($rids=false)
      The first SQL also needs to be fixed. The Group by should be 'GROUP BY qc.id, qc.content'. The qc.content part is missing.

      Attachments

        Activity

          People

            rezeau Joseph Rézeau
            bazaar Mawuli Kuivi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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