Skip to content

Commit

Permalink
MDL-81564 mod_data: Remove duplicate error messages
Browse files Browse the repository at this point in the history
* When a field is missing the error is duplicated for all field
subsequently added to the database
  • Loading branch information
laurentdavid authored and HuongNV13 committed Apr 24, 2024
1 parent 7b9a4ee commit 029db9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/data/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@
$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);

Expand Down

0 comments on commit 029db9d

Please sign in to comment.