Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
7a64e38a
Commit
7a64e38a
authored
Mar 15, 2019
by
Robert Lyon
Committed by
Gerrit Code Review
Mar 15, 2019
Browse files
Merge "Bug 1819787: Hiding group submenu when on group page"
parents
d337ebf8
d6263dfa
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
7a64e38a
...
...
@@ -6032,11 +6032,13 @@ class View {
}
}
public
static
function
set_nav
(
$group
,
$institution
,
$share
=
false
,
$collection
=
false
)
{
public
static
function
set_nav
(
$group
,
$institution
,
$share
=
false
,
$collection
=
false
,
$submenu
=
true
)
{
if
(
$group
)
{
define
(
'MENUITEM'
,
'engage/index'
);
define
(
'MENUITEM_SUBPAGE'
,
$share
?
'share'
:
'views'
);
define
(
'GROUP'
,
$group
);
if
(
$submenu
)
{
define
(
'MENUITEM_SUBPAGE'
,
$share
?
'share'
:
'views'
);
define
(
'GROUP'
,
$group
);
}
}
else
if
(
$institution
==
'mahara'
)
{
define
(
'ADMIN'
,
1
);
...
...
htdocs/view/view.php
View file @
7a64e38a
...
...
@@ -104,7 +104,7 @@ if (!can_view_view($view)) {
throw
new
AccessDeniedException
(
$errorstr
);
}
$institution
=
$view
->
get
(
'institution'
);
View
::
set_nav
(
$groupid
,
$institution
);
View
::
set_nav
(
$groupid
,
$institution
,
false
,
false
,
false
);
// Comment list pagination requires limit/offset params
$limit
=
param_integer
(
'limit'
,
10
);
$offset
=
param_integer
(
'offset'
,
0
);
...
...
test/behat/features/site_features/recent_forum_posts.feature
View file @
7a64e38a
...
...
@@ -69,6 +69,8 @@ Scenario: Create forum and add block to group page
# TODO could test other options
And
I press
"Save"
And
I display the page
# Allow the ajax block to load
And
I wait
"1"
seconds
Then
I should see
"cat photography is often underrated"
And
I should see
"I just use my phone"
And
I expand the section
"Attached files"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment