mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-15538 - Rework attempt.php to use attemptlib.php - I had broken processing of submitted responses. Hopefully it is fixed again now.
This commit is contained in:
parent
4fc3d7e549
commit
66d07f81a1
5 changed files with 23 additions and 18 deletions
|
@ -1040,7 +1040,7 @@ function restore_question_state(&$question, &$state) {
|
|||
* most recent responses are in ->responses. The object
|
||||
* is updated to hold the new ->id.
|
||||
*/
|
||||
function save_question_session(&$question, &$state) {
|
||||
function save_question_session($question, $state) {
|
||||
global $QTYPES, $DB;
|
||||
// Check if the state has changed
|
||||
if (!$state->changed && isset($state->id)) {
|
||||
|
@ -1336,7 +1336,7 @@ function regrade_question_in_attempt($question, $attempt, $cmoptions, $verbose=f
|
|||
* during grading its ->sumgrades field can be updated
|
||||
* @return boolean Indicates success/failure
|
||||
*/
|
||||
function question_process_responses(&$question, &$state, $action, $cmoptions, &$attempt) {
|
||||
function question_process_responses($question, &$state, $action, $cmoptions, &$attempt) {
|
||||
global $QTYPES;
|
||||
|
||||
// if no responses are set initialise to empty response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue