Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
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 bcb6bbae
authored
Oct 31, 2012
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map save bug
1 parent
75a86224
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/EventMapBean.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/poll/PollView.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/EventMapBean.java
View file @
bcb6bba
...
@@ -45,7 +45,8 @@ public class EventMapBean implements EventMapBeanLocal {
...
@@ -45,7 +45,8 @@ public class EventMapBean implements EventMapBeanLocal {
ret
.
setName
(
mapname
);
ret
.
setName
(
mapname
);
LanEvent
event
=
eventbean
.
getCurrentEvent
();
LanEvent
event
=
eventbean
.
getCurrentEvent
();
event
.
getEventMaps
().
add
(
ret
);
event
.
getEventMaps
().
add
(
ret
);
eventbean
.
mergeChanges
(
event
);
// eventfacade.merge(event);
// eventbean.mergeChanges(event);
return
ret
;
return
ret
;
}
}
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/poll/PollView.java
View file @
bcb6bba
...
@@ -77,7 +77,7 @@ public class PollView extends GenericCDIView {
...
@@ -77,7 +77,7 @@ public class PollView extends GenericCDIView {
if
(
super
.
requirePermissions
(
PollPermission
.
ANSWER
)
&&
poll
==
null
)
{
if
(
super
.
requirePermissions
(
PollPermission
.
ANSWER
)
&&
poll
==
null
)
{
thisPage
=
1
;
thisPage
=
1
;
poll
=
pollBean
.
find
(
pollId
);
poll
=
pollBean
.
find
(
pollId
);
if
(
super
.
requirePermissions
(
poll
!=
null
))
if
(
super
.
requirePermissions
(
poll
!=
null
&&
poll
.
getQuestions
()
!=
null
&&
!
poll
.
getQuestions
().
isEmpty
()
))
{
{
return
;
return
;
}
}
...
@@ -103,9 +103,7 @@ public class PollView extends GenericCDIView {
...
@@ -103,9 +103,7 @@ public class PollView extends GenericCDIView {
}
}
public
List
<
QuestionWrapper
>
getCurrentPage
()
{
public
List
<
QuestionWrapper
>
getCurrentPage
()
{
return
getPages
().
get
(
thisPage
);
return
getPages
().
get
(
thisPage
);
}
}
public
String
savePoll
()
{
public
String
savePoll
()
{
...
...
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