Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
moodle-assignsubmission_dta
Commits
31a0e011
Commit
31a0e011
authored
Nov 06, 2023
by
Lückemeyer
Browse files
changed competency array index access
parent
51c41667
Changes
2
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 {
...
@@ -209,7 +209,7 @@ class ViewSubmissionUtils {
$showncompetencies
=
explode
(
";"
,
$summary
->
successfultestcompetencies
);
$showncompetencies
=
explode
(
";"
,
$summary
->
successfultestcompetencies
);
$overallcompetencies
=
explode
(
";"
,
$summary
->
overalltestcompetencies
);
$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
];
$comp
=
$overallcompetencies
[
$index
];
$shown
=
$showncompetencies
[
$index
];
$shown
=
$showncompetencies
[
$index
];
// If the competency was actually assessed by the assignment and tests, add a row in the table.
// If the competency was actually assessed by the assignment and tests, add a row in the table.
...
@@ -221,8 +221,8 @@ class ViewSubmissionUtils {
...
@@ -221,8 +221,8 @@ class ViewSubmissionUtils {
$tmp
=
""
;
$tmp
=
""
;
$tmp
.
=
html_writer
::
tag
(
"td"
,
$tmp
.
=
html_writer
::
tag
(
"td"
,
floatval
(
$shown
)
/
floatval
(
$comp
)
.
"%
//
floatval($shown)/floatval ($comp) . "%
" .
("
.
$shown
.
" / "
.
$comp
.
")"
,
"
("
.
$shown
.
" / "
.
$comp
.
")"
,
$resultrowattributes
);
$resultrowattributes
);
$body
.
=
html_writer
::
tag
(
"tr"
,
$tmp
,
$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