mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
Merge branch 'MDL-44981-master' of git://github.com/jamiepratt/moodle
This commit is contained in:
commit
9d1eed69a0
@ -10,7 +10,7 @@ slot,randq,variant,subpart,modelresponse,actualresponse,totalcount
|
||||
2,,1,1,[NO MATCH],-0.2,1
|
||||
2,,1,1,[NO MATCH],-1,1
|
||||
2,,4,1,{a} + {b} (±0.01 Relative),19.4,2
|
||||
2,,4,1,"[NO RESPONSE]",,1
|
||||
2,,4,1,[NO MATCH],0,1
|
||||
2,,4,1,[NO MATCH],-0.4,1
|
||||
3,,1,1,frog: amphibian,amphibian,25
|
||||
3,,1,2,cat: mammal,mammal,24
|
||||
|
|
@ -145,7 +145,7 @@ class analysis_for_class {
|
||||
return true;
|
||||
} else if (count($actualresponses) === 1) {
|
||||
$singleactualresponse = reset($actualresponses);
|
||||
return $singleactualresponse != $this->modelresponse;
|
||||
return (string)$singleactualresponse != $this->modelresponse;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -249,7 +249,7 @@ class qtype_numerical_question extends question_graded_automatically {
|
||||
}
|
||||
|
||||
public function classify_response(array $response) {
|
||||
if (empty($response['answer'])) {
|
||||
if (!$this->is_gradable_response($response)) {
|
||||
return array($this->id => question_classified_response::no_response());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user