mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
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:
parent
7b9a4eeca5
commit
029db9dd4c
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user