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
d35e5a3d
Commit
d35e5a3d
authored
8 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-2536: show finished only if terms are hidden
parent
e1ab5bc1
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/course/CoursefolderWebDAVMergeSource.java
+6
-6
6 additions, 6 deletions
...n/java/org/olat/course/CoursefolderWebDAVMergeSource.java
with
6 additions
and
6 deletions
src/main/java/org/olat/course/CoursefolderWebDAVMergeSource.java
+
6
−
6
View file @
d35e5a3d
...
...
@@ -66,13 +66,15 @@ class CoursefolderWebDAVMergeSource extends WebDAVMergeSource {
Map
<
String
,
VFSContainer
>
terms
=
null
;
VirtualContainer
noTermContainer
=
null
;
VirtualContainer
finishedContainer
=
n
ew
VirtualContainer
(
"finished"
)
;
VirtualContainer
finishedContainer
=
n
ull
;
boolean
useTerms
=
webDAVModule
.
isTermsFoldersEnabled
();
if
(
useTerms
)
{
// prepare no-terms folder for all resources without semester term info or private date
terms
=
new
HashMap
<
String
,
VFSContainer
>();
noTermContainer
=
new
VirtualContainer
(
"other"
);
noTermContainer
=
new
VirtualContainer
(
"_other"
);
}
else
{
finishedContainer
=
new
VirtualContainer
(
"_finished"
);
}
boolean
prependReference
=
webDAVModule
.
isPrependCourseReferenceToTitle
();
...
...
@@ -97,9 +99,7 @@ class CoursefolderWebDAVMergeSource extends WebDAVMergeSource {
if
(
noTermContainer
.
getItems
().
size
()
>
0
)
{
addContainerToList
(
noTermContainer
,
containers
);
}
}
if
(
finishedContainer
.
getItems
().
size
()
>
0
)
{
}
else
if
(
finishedContainer
.
getItems
().
size
()
>
0
)
{
addContainerToList
(
finishedContainer
,
containers
);
}
...
...
@@ -123,7 +123,7 @@ class CoursefolderWebDAVMergeSource extends WebDAVMergeSource {
}
String
courseTitle
=
RequestUtil
.
normalizeFilename
(
displayName
);
if
(
re
.
getRepositoryEntryStatus
().
isClosed
())
{
if
(
finishedContainer
!=
null
&&
re
.
getRepositoryEntryStatus
().
isClosed
())
{
String
name
=
container
.
getFinishedUniqueName
(
courseTitle
);
NamedContainerImpl
cfContainer
=
new
CoursefolderWebDAVNamedContainer
(
name
,
re
,
editor
?
null
:
identityEnv
);
finishedContainer
.
getItems
().
add
(
cfContainer
);
...
...
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