Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b64c632f
authored
Oct 24, 2013
by
Antti Tonkyra
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'devel' of codecrew.fi:bortal into devel
2 parents
fcdab332
55cb5e82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
code/MoyaWeb/src/fi/codecrew/moya/web/helper/LayoutView.java
code/MoyaWeb/src/fi/codecrew/moya/web/helper/LayoutView.java
View file @
b64c632
...
@@ -75,12 +75,16 @@ public class LayoutView {
...
@@ -75,12 +75,16 @@ public class LayoutView {
{
{
selectedSet
=
new
HashSet
<>();
selectedSet
=
new
HashSet
<>();
selectedTop
=
menubean
.
findNavigation
(
getPagepath
());
selectedTop
=
menubean
.
findNavigation
(
getPagepath
());
while
(
selectedTop
!=
null
)
{
while
(
selectedTop
.
getParent
()
!=
null
)
{
logger
.
info
(
"Traversing to top {}, key {}"
,
selectedTop
,
selectedTop
.
getKey
());
selectedSet
.
add
(
selectedTop
);
selectedSet
.
add
(
selectedTop
);
selectedTop
=
selectedTop
.
getParent
();
selectedTop
=
selectedTop
.
getParent
();
}
}
selectedSet
.
add
(
selectedTop
);
List
<
MenuNavigation
>
tops
=
menubean
.
getTopmenus
();
List
<
MenuNavigation
>
tops
=
menubean
.
getTopmenus
();
if
(!
tops
.
contains
(
selectedTop
)
&&
!
tops
.
isEmpty
())
{
if
(!
tops
.
contains
(
selectedTop
)
&&
!
tops
.
isEmpty
())
{
selectedTop
=
tops
.
get
(
0
);
selectedTop
=
tops
.
get
(
0
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment