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
afc56624
Commit
afc56624
authored
Mar 21, 2016
by
Robert Lyon
Committed by
Gerrit Code Review
Mar 21, 2016
Browse files
Merge "Bug 1537426: Ignore site blogs/blogposts im menus options"
parents
d55f88c2
130890b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/lib.php
View file @
afc56624
...
...
@@ -1320,7 +1320,8 @@ class ArtefactTypeFile extends ArtefactTypeFileBase {
a.id, a.title, a.parent, a.artefacttype
FROM
{
artefact
}
a
LEFT OUTER JOIN
{
artefact_file_files
}
f ON f.artefact = a.id
WHERE a.institution = 'mahara'"
,
array
());
WHERE a.institution = 'mahara'
AND artefacttype NOT IN ('blog', 'blogpost')"
,
array
());
$files
=
array
();
if
(
!
empty
(
$artefacts
))
{
...
...
test/behat/features/admin/create_and_delete_menu_item.feature
View file @
afc56624
...
...
@@ -51,3 +51,27 @@ Scenario: Creating and deleting external links (Selenium 1426983)
|
Privacy
statement
|
0
|
|
About
|
0
|
|
Contact
us
|
0
|
Scenario
:
Make sure blogs do not show in site file link options (Bug
#1537426)
# Log in as "Admin" user
Given
I log in as
"admin"
with password
"Kupuhipa1"
When
I follow
"Administration"
# I create a site journal
And
I choose
"Journals"
in
"Configure site"
And
I follow
"Create journal"
And
I fill in
"Title"
with
"Site blog"
And
I press
"Create journal"
# I upload some site files
And
I choose
"Files"
in
"Configure site"
And
I attach the file
"Image1.jpg"
to
"File"
# Entering an external link
And
I choose
"Menus"
in
"Configure site"
And I select "Logged-in links and resources" from "Edit
:
"
And I set the following fields to these values
:
|
Site
file
|
1
|
And
the
"linkedtonew"
select
box
should
not
contain
"Site
blog"
And
I press
"Add"
\ No newline at end of file
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