mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
improved validation when deleting comments from glossary SC#325 ; merged from MOODLE_17_STABLE
This commit is contained in:
parent
4f93f5ba08
commit
efa0eb1dcd
@ -80,7 +80,7 @@
|
||||
if (!$glossary->allowcomments && !has_capability('mod/glossary:managecomments', $context)) {
|
||||
error('You can\'t delete comments in this glossary!');
|
||||
}
|
||||
if ( $confirm ) {
|
||||
if ( data_submitted() and $confirm ) {
|
||||
delete_records('glossary_comments','id', $cid);
|
||||
|
||||
print_simple_box_start('center','40%', '#FFBBBB');
|
||||
|
Loading…
x
Reference in New Issue
Block a user