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
9b1393a2
Commit
9b1393a2
authored
7 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
no-jira: remove the learning objectives automatically added to the root node
parent
e8b93725
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/restapi/repository/course/CoursesWebService.java
+2
-2
2 additions, 2 deletions
...org/olat/restapi/repository/course/CoursesWebService.java
with
2 additions
and
2 deletions
src/main/java/org/olat/restapi/repository/course/CoursesWebService.java
+
2
−
2
View file @
9b1393a2
...
...
@@ -412,6 +412,7 @@ public class CoursesWebService {
src
=
RepositoryManager
.
getInstance
().
lookupRepositoryEntry
(
copyFrom
,
false
);
}
if
(
src
==
null
)
{
log
.
warn
(
"Cannot find course to copy from: "
+
copyFrom
);
return
null
;
}
OLATResource
originalOres
=
OLATResourceManager
.
getInstance
().
findResourceable
(
src
.
getOlatResource
());
...
...
@@ -519,7 +520,6 @@ public class CoursesWebService {
String
description
,
String
softKey
,
int
access
,
boolean
membersOnly
,
String
authors
,
String
location
,
String
externalId
,
String
externalRef
,
String
managedFlags
,
CourseConfigVO
courseConfigVO
)
{
String
learningObjectives
=
shortTitle
+
" (Example of creating a new course)"
;
if
(!
StringHelper
.
containsNonWhitespace
(
reDisplayName
))
{
reDisplayName
=
shortTitle
;
}
...
...
@@ -552,7 +552,7 @@ public class CoursesWebService {
addedEntry
=
repositoryService
.
update
(
addedEntry
);
// create an empty course
CourseFactory
.
createCourse
(
addedEntry
,
shortTitle
,
longTitle
,
learningObjectives
);
CourseFactory
.
createCourse
(
addedEntry
,
shortTitle
,
longTitle
,
""
);
return
prepareCourse
(
addedEntry
,
shortTitle
,
longTitle
,
courseConfigVO
);
}
catch
(
Exception
e
)
{
...
...
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