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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              tschroeder Tim Schroeder
              Dani Palou Dani Palou
              Ilya Tregubov Ilya Tregubov
              CiBoT CiBoT
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Apr/23

                Time Tracking

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