Commit 8df65906 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1875118: Group label filter correctly



When on 'All groups' list and clicking a label we now get taken to
'All my groups' as only ones own groups can have labels and the
filtering takes place there.

Change-Id: I1bf5af0e37fe1a189b2700bae3137d2fd87de283
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
parent 97fcb63e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -46,6 +46,10 @@ if ($labelfilter) {
    set_account_preference($USER->get('id'), 'grouplabels', json_encode(array_values($userlabels)));
}
$filter = param_alpha('filter', 'allmy');
if ($filter == 'all' && $labelfilter !== null) {
     // when selecting a label in 'All groups' search view switch to 'All my groups'
    $filter = 'allmy';
}
$offset = param_integer('offset', 0);
$groupcategory = param_signed_integer('groupcategory', 0);
$groupsperpage = 10;