Commit cd05dba8 authored by Richard Mansfield's avatar Richard Mansfield Committed by Gerrit Code Review
Browse files

Merge "Fix redirects when cancelling page access edit (bug #731061)"

parents 7e843052 92fe661c
......@@ -425,7 +425,21 @@ function editaccess_validate(Pieform $form, $values) {
}
function editaccess_cancel_submit() {
redirect(); // @todo redirect to new share tab.
global $institution, $group;
if (!empty($institution)) {
if ($institution == 'mahara') {
$redirecturl = '/admin/site/shareviews.php';
} else {
$redirecturl = '/view/institutionshare.php';
}
}
else if (!empty($group)) {
$redirecturl = '/group/shareviews.php?group=' . $group;
}
else {
$redirecturl = '/view/share.php';
}
redirect($redirecturl);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment