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
f9facfaa
Commit
f9facfaa
authored
13 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
FXOLAT-397: make the catalog -> details more robust against concurrent changes
parent
74253973
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/catalog/ui/CatalogController.java
+11
-8
11 additions, 8 deletions
src/main/java/org/olat/catalog/ui/CatalogController.java
with
11 additions
and
8 deletions
src/main/java/org/olat/catalog/ui/CatalogController.java
+
11
−
8
View file @
f9facfaa
...
...
@@ -434,14 +434,17 @@ public class CatalogController extends BasicController implements Activateable,
if
(
s
.
startsWith
(
CATENTRY_LEAF
))
{
int
pos
=
Integer
.
parseInt
(
s
.
substring
(
CATENTRY_LEAF
.
length
()));
CatalogEntry
showDetailForLink
=
(
CatalogEntry
)
childCe
.
get
(
pos
);
RepositoryEntry
repoEnt
=
showDetailForLink
.
getRepositoryEntry
();
fireEvent
(
ureq
,
new
EntryChangedEvent
(
repoEnt
,
EntryChangedEvent
.
MODIFIED
));
//fxdiff BAKS-7 Resume function
OLATResourceable
ceRes
=
OresHelper
.
createOLATResourceableInstance
(
CatalogEntry
.
class
.
getSimpleName
(),
showDetailForLink
.
getKey
());
WindowControl
bwControl
=
addToHistory
(
ureq
,
ceRes
,
null
);
OLATResourceable
ores
=
OresHelper
.
createOLATResourceableInstance
(
"details"
,
0
l
);
addToHistory
(
ureq
,
ores
,
null
,
bwControl
,
true
);
return
;
RepositoryEntry
repoEnt
=
showDetailForLink
.
getRepositoryEntry
();
if
(
repoEnt
==
null
)
{
//concurrent edition, reload the current listing
updateContent
(
ureq
,
currentCatalogEntry
,
currentCatalogEntryLevel
);
}
else
{
fireEvent
(
ureq
,
new
EntryChangedEvent
(
repoEnt
,
EntryChangedEvent
.
MODIFIED
));
//fxdiff BAKS-7 Resume function
OLATResourceable
ceRes
=
OresHelper
.
createOLATResourceableInstance
(
CatalogEntry
.
class
.
getSimpleName
(),
showDetailForLink
.
getKey
());
WindowControl
bwControl
=
addToHistory
(
ureq
,
ceRes
,
null
);
OLATResourceable
ores
=
OresHelper
.
createOLATResourceableInstance
(
"details"
,
0
l
);
addToHistory
(
ureq
,
ores
,
null
,
bwControl
,
true
);
}
}
}
}
...
...
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