Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFTSoftwareProject
MoodleDTA
Commits
31a0e011
Commit
31a0e011
authored
Nov 06, 2023
by
Lückemeyer
Browse files
changed competency array index access
parent
51c41667
Pipeline
#8864
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dta.zip
View file @
31a0e011
No preview for this file type
dta/utils/view.php
View file @
31a0e011
...
...
@@ -209,7 +209,7 @@ class ViewSubmissionUtils {
$showncompetencies
=
explode
(
";"
,
$summary
->
successfultestcompetencies
);
$overallcompetencies
=
explode
(
";"
,
$summary
->
overalltestcompetencies
);
for
(
$index
=
1
,
$size
=
count
(
$overallcompetencies
);
$index
<
=
$size
;
$index
++
)
{
for
(
$index
=
0
,
$size
=
count
(
$overallcompetencies
);
$index
<
$size
;
$index
++
)
{
$comp
=
$overallcompetencies
[
$index
];
$shown
=
$showncompetencies
[
$index
];
// If the competency was actually assessed by the assignment and tests, add a row in the table.
...
...
@@ -221,8 +221,8 @@ class ViewSubmissionUtils {
$tmp
=
""
;
$tmp
.
=
html_writer
::
tag
(
"td"
,
floatval
(
$shown
)
/
floatval
(
$comp
)
.
"%
("
.
$shown
.
" / "
.
$comp
.
")"
,
//
floatval($shown)/floatval ($comp) . "%
" .
"
("
.
$shown
.
" / "
.
$comp
.
")"
,
$resultrowattributes
);
$body
.
=
html_writer
::
tag
(
"tr"
,
$tmp
,
$resultrowattributes
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment