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

OO-1321: launch only launchable resource

parent debc8d00
No related branches found
No related tags found
No related merge requests found
...@@ -760,8 +760,16 @@ public class AuthorListController extends FormBasicController implements Activat ...@@ -760,8 +760,16 @@ public class AuthorListController extends FormBasicController implements Activat
NewControllerFactory.getInstance().launch(businessPath, ureq, getWindowControl()); NewControllerFactory.getInstance().launch(businessPath, ureq, getWindowControl());
} }
private void launchEditDescription(UserRequest ureq, RepositoryEntryRef ref) { private void launchEditDescription(UserRequest ureq, RepositoryEntry re) {
String businessPath = "[RepositoryEntry:" + ref.getKey() + "][EditDescription:0]"; RepositoryHandler handler = repositoryHandlerFactory.getRepositoryHandler(re);
if(handler != null && handler.supportsLaunch()) {
String businessPath = "[RepositoryEntry:" + re.getKey() + "][EditDescription:0]";
NewControllerFactory.getInstance().launch(businessPath, ureq, getWindowControl());
}
}
private void launchEditDescription(UserRequest ureq, RepositoryEntryRef re) {
String businessPath = "[RepositoryEntry:" + re.getKey() + "][EditDescription:0]";
NewControllerFactory.getInstance().launch(businessPath, ureq, getWindowControl()); NewControllerFactory.getInstance().launch(businessPath, ureq, getWindowControl());
} }
......
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