mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Moveit action: Removed debug messages; added redirect.
This commit is contained in:
parent
4897d92364
commit
9be2bd0c39
@ -555,9 +555,6 @@
|
||||
error("Moveit: unable to update link");
|
||||
}
|
||||
|
||||
echo "<p>\$newfirstpageid: $newfirstpageid";
|
||||
echo "<p>\$after: $after";
|
||||
|
||||
// third step. remove the page to be moved
|
||||
if (!$prevpageid = get_field("lesson_pages", "prevpageid", "id", $pageid)) {
|
||||
error("Moveit: prevpageid not found");
|
||||
@ -600,6 +597,7 @@
|
||||
if (!set_field("lesson_pages", "nextpageid", 0, "id", $newlastpageid)) {
|
||||
error("Moveit: unable to update link");
|
||||
}
|
||||
redirect("view.php?id=$cm->id", get_string("ok"));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user