Skip to content
Snippets Groups Projects
Commit b298e3d0 authored by srosse's avatar srosse
Browse files

OO-1894: reverse the check and allow the command to be null

parent 8ea966b3
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,7 @@ public class VelocityContainer extends Container { ...@@ -95,6 +95,7 @@ public class VelocityContainer extends Container {
/** /**
* @see org.olat.core.gui.components.Component#dispatchRequest(org.olat.core.gui.UserRequest) * @see org.olat.core.gui.components.Component#dispatchRequest(org.olat.core.gui.UserRequest)
*/ */
@Override
protected void doDispatchRequest(UserRequest ureq) { protected void doDispatchRequest(UserRequest ureq) {
// called when a page-link is clicked ($r.renderCommand) // called when a page-link is clicked ($r.renderCommand)
String commandString = ureq.getParameter(COMMAND_ID); String commandString = ureq.getParameter(COMMAND_ID);
......
...@@ -479,7 +479,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene ...@@ -479,7 +479,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene
doNodeClick(ureq, tev); doNodeClick(ureq, tev);
} }
} else if (source == coursemain) { } else if (source == coursemain) {
if (event.getCommand().equals("activateCourseNode")) { if ("activateCourseNode".equals(event.getCommand())) {
// Events from the JS function o_activateCourseNode() - activate the given node id // Events from the JS function o_activateCourseNode() - activate the given node id
String nodeid = ureq.getParameter("nodeid"); String nodeid = ureq.getParameter("nodeid");
if (nodeid != null) { if (nodeid != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment