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

OO-531: fix events handling for cmd in the folder component

parent 897a79a8
No related branches found
No related tags found
No related merge requests found
...@@ -387,11 +387,12 @@ public class FolderRunController extends BasicController implements Activateable ...@@ -387,11 +387,12 @@ public class FolderRunController extends BasicController implements Activateable
folderCommand = FolderCommandFactory.getInstance().getCommand(cmd, ureq, getWindowControl()); folderCommand = FolderCommandFactory.getInstance().getCommand(cmd, ureq, getWindowControl());
if (folderCommand != null) { if (folderCommand != null) {
folderCommandController = folderCommand.execute(folderComponent, ureq, getWindowControl(), getTranslator()); Controller commandController = folderCommand.execute(folderComponent, ureq, getWindowControl(), getTranslator());
if (folderCommandController != null) { if (commandController != null) {
folderCommandController = commandController;
// activate command's controller // activate command's controller
this.listenTo(folderCommandController); listenTo(folderCommandController);
if ( ! folderCommand.runsModal()) { if (!folderCommand.runsModal()) {
cmc = new CloseableModalController(getWindowControl(), translate("close"), folderCommandController.getInitialComponent()); cmc = new CloseableModalController(getWindowControl(), translate("close"), folderCommandController.getInitialComponent());
cmc.activate(); cmc.activate();
listenTo(cmc); listenTo(cmc);
......
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