MDL-52542 qtype_multianswer: field names must match string placeholders

This commit is contained in:
Tim Hunt
2015-12-17 08:36:34 +00:00
parent 6ace0f59ae
commit b35e24e254
@@ -235,8 +235,8 @@ class qtype_multianswer_edit_form extends question_edit_form {
"</strong>");
}
$a = new stdClass();
$a->nbofquiz = $this->nbofquiz;
$a->nbofattempts = $this->nbofattempts;
$a->nb_of_quiz = $this->nbofquiz;
$a->nb_of_attempts = $this->nbofattempts;
$mform->addElement('header', 'additemhdr2',
get_string('questionusedinquiz', 'qtype_multianswer', $a));
$mform->addElement('static', 'alertas',