MDL-81564 mod_data: Remove duplicate error messages

* When a field is missing the error is duplicated for all field
subsequently added to the database
This commit is contained in:
Laurent David
2024-04-24 08:54:58 +07:00
committed by Huong Nguyen
parent ee91c6536f
commit 53557c3be1
+3 -3
View File
@@ -417,9 +417,9 @@ if (($mode == 'new') && (!empty($newtype))) { // Adding a new field.
$OUTPUT->render_from_template('core/action_menu', $actionmenutemplate)
];
if (!empty($missingfieldtypes)) {
echo $OUTPUT->notification(get_string('missingfieldtypes', 'data') . html_writer::alist($missingfieldtypes));
}
}
if (!empty($missingfieldtypes)) {
echo $OUTPUT->notification(get_string('missingfieldtypes', 'data') . html_writer::alist($missingfieldtypes));
}
echo html_writer::table($table);