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

OO-418: add a workaround to the importer in one step which prevents to finish...

OO-418: add a workaround to the importer in one step which prevents to finish several time the course import
parent fe1bb60b
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,6 @@ import org.olat.core.gui.UserRequest; ...@@ -34,7 +34,6 @@ import org.olat.core.gui.UserRequest;
import org.olat.core.gui.components.Component; import org.olat.core.gui.components.Component;
import org.olat.core.gui.components.link.Link; import org.olat.core.gui.components.link.Link;
import org.olat.core.gui.components.link.LinkFactory; import org.olat.core.gui.components.link.LinkFactory;
import org.olat.core.gui.components.panel.Panel;
import org.olat.core.gui.components.velocity.VelocityContainer; import org.olat.core.gui.components.velocity.VelocityContainer;
import org.olat.core.gui.control.Controller; import org.olat.core.gui.control.Controller;
import org.olat.core.gui.control.Event; import org.olat.core.gui.control.Event;
...@@ -353,6 +352,10 @@ public class RepositoryAddController extends BasicController { ...@@ -353,6 +352,10 @@ public class RepositoryAddController extends BasicController {
} }
protected void addFinished(UserRequest ureq) { protected void addFinished(UserRequest ureq) {
if(addedEntry != null) {
return;
}
try { try {
DBFactory.getInstance().commitAndCloseSession(); DBFactory.getInstance().commitAndCloseSession();
} catch (Exception e) { } catch (Exception e) {
......
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