Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 52... Línea 52...
52
        $question->update_current_response($response);
52
        $question->update_current_response($response);
Línea 53... Línea 53...
53
 
53
 
54
        $currentresponse = $question->currentresponse;
54
        $currentresponse = $question->currentresponse;
Línea -... Línea 55...
-
 
55
        $correctresponse = $question->correctresponse;
-
 
56
 
-
 
57
        // If we are running behat, force the question into a consistently known state for the sake of avoiding DnD funkyness.
-
 
58
        if (defined('BEHAT_SITE_RUNNING')) {
-
 
59
            $currentresponse = array_reverse($correctresponse);
55
        $correctresponse = $question->correctresponse;
60
        }
56
 
61
 
57
        // Generate fieldnames and ids.
62
        // Generate fieldnames and ids.
58
        $responsefieldname = $question->get_response_fieldname();
63
        $responsefieldname = $question->get_response_fieldname();
59
        $responsename = $this->qa->get_qt_field_name($responsefieldname);
64
        $responsename = $this->qa->get_qt_field_name($responsefieldname);