mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-44981 quiz statistics report : Differentiating '0' and no response
in numeric questions.
This commit is contained in:
parent
bec7719c3b
commit
1d75d9fe70
@ -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