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
ccd16730
Commit
ccd16730
authored
13 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-150: better check if a test is closed before trying to show it ( in case of back/resume)
--HG-- branch : 80-patch
parent
a538cd4b
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/org/olat/course/nodes/iq/IQRunController.java
+6
-1
6 additions, 1 deletion
src/main/java/org/olat/course/nodes/iq/IQRunController.java
src/main/java/org/olat/modules/iq/IQDisplayController.java
+5
-0
5 additions, 0 deletions
src/main/java/org/olat/modules/iq/IQDisplayController.java
with
11 additions
and
1 deletion
src/main/java/org/olat/course/nodes/iq/IQRunController.java
+
6
−
1
View file @
ccd16730
...
...
@@ -393,7 +393,10 @@ public class IQRunController extends BasicController implements GenericEventList
if
(
returnController
instanceof
IQDisplayController
){
displayController
=
(
IQDisplayController
)
returnController
;
listenTo
(
displayController
);
if
(
displayController
.
isReady
())
{
if
(
displayController
.
isClosed
())
{
//do nothing
System
.
out
.
println
();
}
else
if
(
displayController
.
isReady
())
{
// in case displayController was unable to initialize, a message was set by displayController
// this is the case if no more attempts or security check was unsuccessfull
displayContainerController
=
new
LayoutMain3ColsController
(
ureq
,
getWindowControl
(),
null
,
null
,
displayController
.
getInitialComponent
(),
null
);
...
...
@@ -421,6 +424,8 @@ public class IQRunController extends BasicController implements GenericEventList
singleUserEventCenter
.
fireEventToListenersOf
(
new
AssessmentEvent
(
AssessmentEvent
.
TYPE
.
STARTED
,
ureq
.
getUserSession
()),
assessmentEventOres
);
}
}
//endif isReady
}
else
{
// -> qti file was locked -> show info message
// user must click again on course node to activate
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/modules/iq/IQDisplayController.java
+
5
−
0
View file @
ccd16730
...
...
@@ -344,6 +344,11 @@ public class IQDisplayController extends DefaultController implements Activateab
return
ready
;
}
public
boolean
isClosed
()
{
if
(
qticomp
==
null
)
return
true
;
AssessmentInstance
ai
=
qticomp
.
getAssessmentInstance
();
return
ai
.
isClosed
();
}
private
void
updateQuestionProgressDisplay
(
AssessmentInstance
ai
)
{
...
...
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