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
fae44066
Commit
fae44066
authored
9 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-1694: use the current course id and not the saved one
parent
13211cbe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/bps/course/nodes/DENCourseNode.java
+1
-1
1 addition, 1 deletion
src/main/java/de/bps/course/nodes/DENCourseNode.java
src/main/java/de/bps/course/nodes/den/DENRunController.java
+3
-2
3 additions, 2 deletions
src/main/java/de/bps/course/nodes/den/DENRunController.java
with
4 additions
and
3 deletions
src/main/java/de/bps/course/nodes/DENCourseNode.java
+
1
−
1
View file @
fae44066
...
...
@@ -104,7 +104,7 @@ public class DENCourseNode extends AbstractAccessableCourseNode {
String
message
=
trans
.
translate
(
"guestnoaccess.message"
);
controller
=
MessageUIFactory
.
createInfoMessage
(
ureq
,
wControl
,
title
,
message
);
}
else
{
controller
=
new
DENRunController
(
ureq
,
wControl
,
getModuleConfiguration
(),
this
);
controller
=
new
DENRunController
(
ureq
,
wControl
,
getModuleConfiguration
(),
userCourseEnv
,
this
);
}
Controller
ctrl
=
TitledWrapperHelper
.
getWrapper
(
ureq
,
wControl
,
controller
,
this
,
"o_en_icon"
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/bps/course/nodes/den/DENRunController.java
+
3
−
2
View file @
fae44066
...
...
@@ -47,6 +47,7 @@ import org.olat.course.CourseFactory;
import
org.olat.course.ICourse
;
import
org.olat.course.groupsandrights.CourseGroupManager
;
import
org.olat.course.nodes.ObjectivesHelper
;
import
org.olat.course.run.userview.UserCourseEnvironment
;
import
org.olat.modules.ModuleConfiguration
;
import
de.bps.course.nodes.DENCourseNode
;
...
...
@@ -88,10 +89,10 @@ public class DENRunController extends BasicController implements GenericEventLis
* @param denCourseNode
* @param userCourseEnv
*/
public
DENRunController
(
UserRequest
ureq
,
WindowControl
wControl
,
ModuleConfiguration
moduleConfig
,
DENCourseNode
denCourseNode
)
{
public
DENRunController
(
UserRequest
ureq
,
WindowControl
wControl
,
ModuleConfiguration
moduleConfig
,
UserCourseEnvironment
userCourseEnv
,
DENCourseNode
denCourseNode
)
{
super
(
ureq
,
wControl
);
this
.
courseNode
=
denCourseNode
;
this
.
ores
=
CourseFactory
.
loadCourse
(
(
Long
)
moduleConfig
.
get
(
DENCourseNode
.
CONF_COURSE_ID
));
this
.
ores
=
CourseFactory
.
loadCourse
(
userCourseEnv
.
getCourseEnvironment
().
getCourseResourceableId
(
));
this
.
cancelEnrollEnabled
=
((
Boolean
)
moduleConfig
.
get
(
DENCourseNode
.
CONF_CANCEL_ENROLL_ENABLED
)).
booleanValue
();
denManager
=
DENManager
.
getInstance
();
...
...
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