Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle_local_hsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle_local_hsh
Merge requests
!1
CHANGE save and return return to link after approving a course
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
CHANGE save and return return to link after approving a course
SaveAndReturn
into
master
Overview
0
Commits
1
Changes
2
Merged
Julian Tolstich
requested to merge
SaveAndReturn
into
master
3 years ago
Overview
0
Commits
1
Changes
2
Original Issue:
https://lab.it.hs-hannover.de/elc/moodle/-/issues/49
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
bc9297b6
1 commit,
3 years ago
2 files
+
13
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
pending.php
+
12
−
1
View file @ bc9297b6
Edit in single-file editor
Open in Web IDE
Show full file
@@ -64,7 +64,18 @@ if (!empty($approve) and confirm_sesskey()) {
if
(
$courseid
!==
false
)
{
if
(
has_capability
(
'moodle/course:update'
,
context_course
::
instance
(
$courseid
)))
{
redirect
(
new
moodle_url
(
'/course/edit.php'
,
[
'id'
=>
$courseid
,
'returnto'
=>
'pending'
]));
// > Hsh julian wendling - changed "save and return" link to go back to hsh pending page
$returnurl
=
new
moodle_url
(
$baseurl
);
$saveandbackurl
=
new
moodle_url
(
$CFG
->
wwwroot
.
'/course/edit.php'
,
array
(
'id'
=>
$courseid
,
'sesskey'
=>
sesskey
(),
'returnto'
=>
'url'
,
'returnurl'
=>
$returnurl
->
out
(
false
))
);
redirect
(
new
moodle_url
(
$saveandbackurl
->
out
()));
// < Hsh julian wendling
}
else
{
redirect
(
new
moodle_url
(
'/course/view.php'
,
[
'id'
=>
$courseid
]));
}
Loading