Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
f2f2a889
Commit
f2f2a889
authored
13 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
FXOLAT-411: remove an AssertException, make the survive this case of adding 2 times the same tab
parent
60b935c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/core/commons/fullWebApp/BaseFullWebappController.java
+6
-1
6 additions, 1 deletion
...lat/core/commons/fullWebApp/BaseFullWebappController.java
with
6 additions
and
1 deletion
src/main/java/org/olat/core/commons/fullWebApp/BaseFullWebappController.java
+
6
−
1
View file @
f2f2a889
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment