From b4315a17ddfdb401b797d18c5191d6ce472e0716 Mon Sep 17 00:00:00 2001
From: hitchhike2mars <manubhadoria24@gmail.com>
Date: Fri, 25 Mar 2016 02:10:55 +0530
Subject: [PATCH] MDL-53440 course: Multi course select options

Option to select multiple courses allowing users to approve or reject together on course/pending.php.
This wont allow user to change course settings on course/edit.php.
---
 course/pending.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/course/pending.php b/course/pending.php
index 7b435d6..72cf852 100644
--- a/course/pending.php
+++ b/course/pending.php
@@ -51,7 +51,7 @@
     $courseid = $course->approve();
 
     if ($courseid !== false) {
-        redirect($CFG->wwwroot.'/course/edit.php?id=' . $courseid);
+        redirect($CFG->wwwroot.'/course/edit.php?id=' . $courseid.'&returnto=pending');
     } else {
         print_error('courseapprovedfailed');
     }
