improved validation when deleting comments from glossary SC#325 ; merged from MOODLE_17_STABLE
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user