Commit bcb6bbae by Tuomas Riihimäki

map save bug

1 parent 75a86224
......@@ -45,7 +45,8 @@ public class EventMapBean implements EventMapBeanLocal {
ret.setName(mapname);
LanEvent event = eventbean.getCurrentEvent();
event.getEventMaps().add(ret);
eventbean.mergeChanges(event);
// eventfacade.merge(event);
// eventbean.mergeChanges(event);
return ret;
}
......
......@@ -77,7 +77,7 @@ public class PollView extends GenericCDIView {
if (super.requirePermissions(PollPermission.ANSWER) && poll == null) {
thisPage = 1;
poll = pollBean.find(pollId);
if (super.requirePermissions(poll != null))
if (super.requirePermissions(poll != null && poll.getQuestions() != null && !poll.getQuestions().isEmpty()))
{
return;
}
......@@ -103,9 +103,7 @@ public class PollView extends GenericCDIView {
}
public List<QuestionWrapper> getCurrentPage() {
return getPages().get(thisPage);
}
public String savePoll() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!