mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-58434-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
a724a97f25
1 changed files with 3 additions and 2 deletions
|
@ -215,8 +215,9 @@ class lesson_page_type_numerical extends lesson_page {
|
|||
$answerdata->answers[] = array(get_string("nooneansweredthisquestion", "lesson"), " ");
|
||||
}
|
||||
$i++;
|
||||
} else if ($useranswer != null && ($answer->id == $useranswer->answerid || ($answer == end($answers) && empty($answerdata)))) {
|
||||
// get in here when what the user entered is not one of the answers
|
||||
} else if ($useranswer != null && ($answer->id == $useranswer->answerid || ($answer == end($answers) &&
|
||||
empty($answerdata->answers)))) {
|
||||
// Get in here when the user answered or for the last answer.
|
||||
$data = '<input class="form-control" type="text" size="50" ' .
|
||||
'disabled="disabled" readonly="readonly" value="'.s($useranswer->useranswer).'">';
|
||||
if (isset($pagestats[$this->properties->id][$useranswer->useranswer])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue