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
29d0180d
Commit
29d0180d
authored
4 years ago
by
uhensler
Browse files
Options
Downloads
Patches
Plain Diff
OO-4207: Changes of assessment status have to be visible immediately for participant
parent
de3b540b
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/run/RunMainController.java
+3
-9
3 additions, 9 deletions
src/main/java/org/olat/course/run/RunMainController.java
with
3 additions
and
9 deletions
src/main/java/org/olat/course/run/RunMainController.java
+
3
−
9
View file @
29d0180d
...
...
@@ -147,7 +147,6 @@ public class RunMainController extends MainLayoutBasicController implements Gene
private
boolean
needsRebuildAfter
=
false
;
private
boolean
needsRebuildAfterPublish
=
false
;
private
boolean
needsRebuildAfterRunDone
=
false
;
private
boolean
assessmentChangedEventReceived
=
false
;
private
String
courseTitle
;
private
Link
nextLink
,
previousLink
;
...
...
@@ -775,11 +774,6 @@ public class RunMainController extends MainLayoutBasicController implements Gene
}
private
void
doNodeClick
(
UserRequest
ureq
,
TreeEvent
tev
)
{
if
(
assessmentChangedEventReceived
)
{
uce
.
getScoreAccounting
().
evaluateAll
();
assessmentChangedEventReceived
=
false
;
}
// goto node:
// after a click in the tree, evaluate the model anew, and set the
// selection of the tree again
...
...
@@ -877,9 +871,9 @@ public class RunMainController extends MainLayoutBasicController implements Gene
// do not re-evaluate things if only comment has been changed
if
(
assessmentChangeType
.
equals
(
AssessmentChangedEvent
.
TYPE_SCORE_EVAL_CHANGED
)
||
assessmentChangeType
.
equals
(
AssessmentChangedEvent
.
TYPE_ATTEMPTS_CHANGED
))
{
//LD: do not recalculate the score now, but at the next click, since the event comes before DB commit
//uce.getScoreAccounting().evaluateAll
();
assessmentChangedEventReceived
=
true
;
uce
.
getScoreAccounting
().
evaluateAll
();
updateProgressUI
();
updateAfterChanges
(
getCurrentCourseNode
(),
luTree
.
getSelectedNodeId
());
}
// raise a flag to indicate refresh
needsRebuildAfterRunDone
=
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