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
3c9432b0
Commit
3c9432b0
authored
8 years ago
by
srosse
Browse files
Options
Downloads
Plain Diff
Merge OpenOLAT 10.4 to OpenOLAT 10.5 with 452436a2e32ef5cca6805af0e7db5330ef882a32
parents
955e0161
5998d52a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/course/nodes/ENCourseNode.java
+9
-13
9 additions, 13 deletions
src/main/java/org/olat/course/nodes/ENCourseNode.java
with
9 additions
and
13 deletions
src/main/java/org/olat/course/nodes/ENCourseNode.java
+
9
−
13
View file @
3c9432b0
...
...
@@ -176,7 +176,7 @@ public class ENCourseNode extends AbstractAccessableCourseNode {
// FIXME: refine statusdescriptions
String
shortKey
=
"error.nogroupdefined.short"
;
String
longKey
=
"error.nogroupdefined.long"
;
String
[]
params
=
new
String
[]
{
this
.
getShortTitle
()
};
String
[]
params
=
new
String
[]
{
getShortTitle
()
};
String
translPackage
=
Util
.
getPackageName
(
ENEditController
.
class
);
sd
=
new
StatusDescription
(
StatusDescription
.
ERROR
,
shortKey
,
longKey
,
params
,
translPackage
);
sd
.
setDescriptionForUnit
(
getIdent
());
...
...
@@ -391,9 +391,8 @@ public class ENCourseNode extends AbstractAccessableCourseNode {
public
void
postImportCopy
(
CourseEnvironmentMapper
envMapper
)
{
ModuleConfiguration
mc
=
getModuleConfiguration
();
String
groupNames
=
(
String
)
mc
.
get
(
ENCourseNode
.
CONFIG_GROUPNAME
);
@SuppressWarnings
(
"unchecked"
)
List
<
Long
>
groupKeys
=
(
List
<
Long
>)
mc
.
get
(
ENCourseNode
.
CONFIG_GROUP_IDS
);
if
(
groupKeys
==
null
)
{
List
<
Long
>
groupKeys
=
mc
.
getList
(
ENCourseNode
.
CONFIG_GROUP_IDS
,
Long
.
class
);
if
(
groupKeys
==
null
||
groupKeys
.
isEmpty
())
{
groupKeys
=
envMapper
.
toGroupKeyFromOriginalNames
(
groupNames
);
}
else
{
groupKeys
=
envMapper
.
toGroupKeyFromOriginalKeys
(
groupKeys
);
...
...
@@ -401,12 +400,11 @@ public class ENCourseNode extends AbstractAccessableCourseNode {
mc
.
set
(
ENCourseNode
.
CONFIG_GROUP_IDS
,
groupKeys
);
String
areaNames
=
(
String
)
mc
.
get
(
ENCourseNode
.
CONFIG_AREANAME
);
@SuppressWarnings
(
"unchecked"
)
List
<
Long
>
areaKeys
=
(
List
<
Long
>)
mc
.
get
(
ENCourseNode
.
CONFIG_AREA_IDS
);
if
(
areaKeys
==
null
)
{
List
<
Long
>
areaKeys
=
mc
.
getList
(
ENCourseNode
.
CONFIG_AREA_IDS
,
Long
.
class
);
if
(
areaKeys
==
null
||
areaKeys
.
isEmpty
())
{
areaKeys
=
envMapper
.
toAreaKeyFromOriginalNames
(
areaNames
);
}
else
{
areaKeys
=
envMapper
.
toAreaKeyFromOriginalKeys
(
group
Keys
);
areaKeys
=
envMapper
.
toAreaKeyFromOriginalKeys
(
area
Keys
);
}
mc
.
set
(
ENCourseNode
.
CONFIG_AREA_IDS
,
areaKeys
);
}
...
...
@@ -416,16 +414,14 @@ public class ENCourseNode extends AbstractAccessableCourseNode {
super
.
postExport
(
envMapper
,
backwardsCompatible
);
ModuleConfiguration
mc
=
getModuleConfiguration
();
@SuppressWarnings
(
"unchecked"
)
List
<
Long
>
groupKeys
=
(
List
<
Long
>)
mc
.
get
(
ENCourseNode
.
CONFIG_GROUP_IDS
);
List
<
Long
>
groupKeys
=
mc
.
getList
(
ENCourseNode
.
CONFIG_GROUP_IDS
,
Long
.
class
);
if
(
groupKeys
!=
null
)
{
String
groupNames
=
envMapper
.
toGroupNames
(
groupKeys
);
mc
.
set
(
ENCourseNode
.
CONFIG_GROUPNAME
,
groupNames
);
}
@SuppressWarnings
(
"unchecked"
)
List
<
Long
>
areaKeys
=
(
List
<
Long
>)
mc
.
get
(
ENCourseNode
.
CONFIG_AREA_IDS
);
if
(
areaKeys
!=
null
)
{
List
<
Long
>
areaKeys
=
mc
.
getList
(
ENCourseNode
.
CONFIG_AREA_IDS
,
Long
.
class
);
if
(
areaKeys
!=
null
)
{
String
areaNames
=
envMapper
.
toAreaNames
(
areaKeys
);
mc
.
set
(
ENCourseNode
.
CONFIG_AREANAME
,
areaNames
);
}
...
...
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