Commit bcb6bbae by Tuomas Riihimäki

map save bug

1 parent 75a86224
...@@ -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;
} }
......
...@@ -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() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!