Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Moodle Qtype Moopt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
Moodle Qtype Moopt
Commits
0f53f895
Commit
0f53f895
authored
1 year ago
by
Alexander Loewe
Browse files
Options
Downloads
Patches
Plain Diff
Fixed duplicate rendering of gradingscheme
parent
0d250731
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
classes/output/renderer.php
+6
-6
6 additions, 6 deletions
classes/output/renderer.php
with
6 additions
and
6 deletions
classes/output/renderer.php
+
6
−
6
View file @
0f53f895
...
@@ -140,12 +140,12 @@ class qtype_moopt_renderer extends qtype_renderer {
...
@@ -140,12 +140,12 @@ class qtype_moopt_renderer extends qtype_renderer {
}
}
if
(
!
$qa
->
get_state
()
->
is_graded
()
&&
(
$qa
->
get_question
()
->
showstudgradingscheme
||
has_capability
(
'mod/quiz:grade'
,
$PAGE
->
context
)))
{
if
(
!
$qa
->
get_state
()
->
is_graded
()
&&
(
$qa
->
get_question
()
->
showstudgradingscheme
||
has_capability
(
'mod/quiz:grade'
,
$PAGE
->
context
)))
{
$gradingscheme
=
$this
->
render_grading_scheme
(
$qa
);
$gradingscheme
=
$this
->
render_grading_scheme
(
$qa
);
//$o .= html_writer::tag('div', $gradingscheme, array('class' => 'gradingscheme'));
if
(
!
$qa
->
get_question
()
->
showstudgradingscheme
){
if
(
!
$qa
->
get_question
()
->
showstudgradingscheme
){
$o
.
=
html_writer
::
tag
(
'div'
,
$gradingscheme
,
array
(
'class'
=>
'gradingscheme'
));
$o
.
=
html_writer
::
tag
(
'div'
,
$gradingscheme
,
array
(
'class'
=>
'gradingscheme'
));
}
}
else
{
$o
.
=
html_writer
::
tag
(
'div'
,
$gradingscheme
);
$o
.
=
html_writer
::
tag
(
'div'
,
$gradingscheme
);
}
}
}
if
(
$qa
->
get_state
()
->
is_finished
()
||
$laststep
->
has_behaviour_var
(
'_completeForGrading'
))
{
if
(
$qa
->
get_state
()
->
is_finished
()
||
$laststep
->
has_behaviour_var
(
'_completeForGrading'
))
{
// state->is_finished() implies that a question attempt has been finished by the student,
// state->is_finished() implies that a question attempt has been finished by the student,
// i.e. the student was sure enough to click the button to submit their solution.
// i.e. the student was sure enough to click the button to submit their solution.
...
...
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