Skip to content
Snippets Groups Projects
Commit 2aadb1e7 authored by Ide Braakman's avatar Ide Braakman Committed by Devin Zuczek
Browse files

Issue #2400051 by idebr, djdevin: Notice: Undefined index: score in getReportFormValidate()

parent 22927b0b
No related branches found
No related tags found
No related merge requests found
......@@ -67,9 +67,9 @@ function quiz_report_form($form, $form_state, $questions, $result_id) {
$form_to_add = $function($question, $result_id);
if (isset($form_to_add['submit'])) {
$show_submit = TRUE;
$form_to_add['#element_validate'][] = 'quiz_report_form_element_validate';
}
if (!isset($form_to_add['#no_report'])) {
$form_to_add['#element_validate'][] = 'quiz_report_form_element_validate';
$form[] = $form_to_add;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment