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

Exception is thrown if you try to download responses from a survey activity with no responses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.4, 2.7.1
    • 2.7
    • Survey
    • MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MDL-46036_survey
    • Hide

      Create a survey activity, click on 'download results'.

      You should get a message saying "Nobody has yet completed this survey".

      As a student complete the survey.

      As teacher/admin you should now be able to download survey results.

      Show
      Create a survey activity, click on 'download results'. You should get a message saying "Nobody has yet completed this survey". As a student complete the survey. As teacher/admin you should now be able to download survey results.
    • 5
    • FRONTEND Sprint 12

      I suspect we should be handling there being no data to download in a more graceful way.

      Create a survey activity, click on 'download results' and pick excel. The following is displayed.

      There are no answers for this survey yet.

      More information about this error

      Debug info:
      Error code: cannotfindanswer
      Stack trace:
      line 463 of /lib/setuplib.php: moodle_exception thrown
      line 138 of /mod/survey/download.php: call to print_error()

            andyjdavis Andrew Davis
            andyjdavis Andrew Davis
            Frédéric Massart Frédéric Massart
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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