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

FXOLAT-411: remove an AssertException, make the survive this case of adding 2 times the same tab

parent 60b935c6
No related branches found
No related tags found
No related merge requests found
......@@ -834,7 +834,12 @@ public class BaseFullWebappController extends BasicController implements Generic
public void addDTab(DTab dt) {
// FIXME:fj:restrict to say 7 elements
DTab old = getDTab(dt.getOLATResourceable());
if (old != null) throw new AssertException("dtabs already contained: " + old);
if (old != null) {
//do make a red screen for that
//throw new AssertException("dtabs already contained: " + old);
getWindowControl().getWindowBackOffice().getWindow().setAttribute("BUSPATH", dt.getWindowControl());
return;
}
// add to tabs list
synchronized (dtabs) {
// make dtabs and dtabsControllers access synchronized
......
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