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

Error on lesson detailed statistics page when empty string entered for numerical question

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.0.8, 4.1.3
    • 3.11.12, 4.0.6, 4.1.1
    • Lesson

      When someone enters an empty string for a numerical question in a lesson, the detailed statistics page for that lesson throws an exception since the value is not a float.

      Steps to reproduce:

      1. Login as teacher.
      2. Create lesson.
      3. Add numerical question.
      4. Login as student.
      5. Take lesson answering the question with an empty string.
      6. Switch back to teacher.
      7. View Lesson -> Reports -> Detailed statistics.

            jleyva Juan Leyva
            tschroeder Tim Schroeder
            Dani Palou Dani Palou
            Ilya Tregubov Ilya Tregubov
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 22 minutes
                3h 22m

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