Commit f4f4589d authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use clean group url for redirect after editing group hompepage access



Bug #1006634, part 3

In fact, this url was previously unused, because the $redirecturl
variable was being clobbered immediately after the view type test.

Change-Id: If8695b5750599ba9ea0c62fc07f5625eafe1216a
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 82b7f5ae
......@@ -3784,9 +3784,11 @@ class View {
else {
if ($this->get('group')) {
if ($this->get('type') == 'grouphomepage') {
$redirecturl = '/group/view.php?id='.$this->get('group');
$redirecturl = group_homepage_url(get_record('group', 'id', $this->get('group')));
}
else {
$redirecturl = '/view/groupviews.php?group='.$this->get('group');
}
$redirecturl = '/view/groupviews.php?group='.$this->get('group');
}
else if ($this->get('institution')) {
$redirecturl = '/view/institutionviews.php?institution=' . $this->get('institution');
......
Supports Markdown
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