-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.11, 4.0
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]