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

Feedback multiple concurrent submissions causes error

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9.11, 4.0
    • Feedback

      If you start two survey submissions at the same time, the second one you submit will cause an error.

      To replicate

      As teacher
      Create Feedback A
      Add any question type
      Create Feedback B
      Add any question type

      As student
      In one tab, open Feedback A - make a selection BUT DO NOT SUBMIT
      In another tab, open survey B - make a selection BUT DO NOT SUBMIT
      Go back to the first tab and submit Feedback A
      Go to the second tab and submit Feedback B

      Expectation:
      Both feedback submit without issues

      Actual:
      Feedback A submits but Feedback B shows an error message

      TECHNICAL REASON FOR THIS BUG:
      The reason for this bug is because of this session variable:

      $SESSION->feedback->is_started

      The variable tracks the status of feedback indiscriminately - i.e. it applies to ALL feedback interactions when it should only apply to an individual feedback interaction.

      To fix it I'd go with something like this:

      $SESSION->feedback->is_started[$cmid]

            pholden Paul Holden
            brudinie guy thomas
            Muhammad Arnaldo Muhammad Arnaldo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 55 minutes
                1h 55m

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