Commit 92fe661c authored by Melissa Draper's avatar Melissa Draper
Browse files

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



Change-Id: I5ca8a11d5e43072c2427d5d70d9f40222f92d14b
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent 25978130
......@@ -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