|
|
|
Issue Links:
|
Relates
|
|
|
|
This issue has been marked as being related by:
|
|
|
MDL-18396 Inconsistence in review options handling on reviewing previews
|
|
|
|
|
|
|
| Participants: |
Tim Hunt
|
| Security Level: |
None
|
| Affected Branches: |
MOODLE_20_STABLE
|
| Fixed Branches: |
MOODLE_20_STABLE
|
|
On submit all and finish, initialise
$SESSION->quizattemptjustfinished[$attemtp->id] = array('key' => random_string(10), 'time' => time());
and add
?key=$SESSION->quizattemptjustfinished[$attemtp->id]['key'];
to the URL of the review page. That marks that this is a review 'immediately after the attempt'. On each hit of the review page, update the 'time'.
Then on 'Finish review', delete that entry from quizattemptjustfinished.
When validating the key, if too much time has passed since the last recorded 'time', delete this entry from quizattemptjustfinished - that is necessary for when people just close the browser window.
|
|
Description
|
On submit all and finish, initialise
$SESSION->quizattemptjustfinished[$attemtp->id] = array('key' => random_string(10), 'time' => time());
and add
?key=$SESSION->quizattemptjustfinished[$attemtp->id]['key'];
to the URL of the review page. That marks that this is a review 'immediately after the attempt'. On each hit of the review page, update the 'time'.
Then on 'Finish review', delete that entry from quizattemptjustfinished.
When validating the key, if too much time has passed since the last recorded 'time', delete this entry from quizattemptjustfinished - that is necessary for when people just close the browser window. |
Show » |
made changes - 27/Feb/09 08:51 PM
| Field |
Original Value |
New Value |
|
Link
|
|
This issue has been marked as being related by MDL-18396
[ MDL-18396
]
|
|