Redirect after page deletion to avoid page error when refreshing
This commit is contained in:
parent
1bb5ad0409
commit
44b3a77a5f
1 changed files with 2 additions and 0 deletions
2
edit.php
2
edit.php
|
@ -91,6 +91,8 @@ if ($tid) {
|
|||
case 'deletepage' :
|
||||
if (!empty($confirm)) { // Check they have confirmed the deletion.
|
||||
$template->delete_page($actionid);
|
||||
$url = new \moodle_url('/mod/customcert/edit.php', array('tid' => $tid));
|
||||
redirect($url);
|
||||
} else {
|
||||
// Set deletion flag to true.
|
||||
$deleting = true;
|
||||
|
|
Loading…
Reference in a new issue