Skip to content
Snippets Groups Projects
Commit 47021d29 authored by Tim Hunt's avatar Tim Hunt
Browse files

Use the default question summary if the question note is blank.

parent e342c3de
No related branches found
No related tags found
No related merge requests found
...@@ -271,8 +271,11 @@ class qtype_stack_question extends question_graded_automatically { ...@@ -271,8 +271,11 @@ class qtype_stack_question extends question_graded_automatically {
} }
public function get_question_summary() { public function get_question_summary() {
if ('' !== $this->questionnoteinstantiated) {
return $this->questionnoteinstantiated; return $this->questionnoteinstantiated;
} }
return parent::get_question_summary();
}
public function summarise_response(array $response) { public function summarise_response(array $response) {
$bits = array(); $bits = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment