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
81d91c69
Commit
81d91c69
authored
Nov 04, 2023
by
Lückemeyer
Browse files
fixed view index issue
parent
f3609cf1
Pipeline
#8852
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dta.zip
View file @
81d91c69
No preview for this file type
dta/utils/view.php
View file @
81d91c69
...
...
@@ -56,7 +56,7 @@ class ViewSubmissionUtils {
$html
.
=
$summary
->
unknownCount
()
.
get_string
(
"unknown_state"
,
self
::
COMPONENT_NAME
)
.
"<br>"
;
}
$html
.
=
$summary
->
successfulTestCompetencyProfile
.
get_string
(
"success_competencies"
,
self
::
COMPONENT_NAME
)
.
"<br>"
;
$html
.
=
get_string
(
"success_competencies"
,
self
::
COMPONENT_NAME
)
.
$summary
->
successfulTestCompetencyProfile
.
"<br>"
;
return
html_writer
::
div
(
$html
,
"dtaSubmissionSummary"
);
}
...
...
@@ -207,6 +207,7 @@ class ViewSubmissionUtils {
$showncompetencies
=
explode
(
";"
,
$summary
->
successfultestcompetencies
);
$overallcompetencies
=
explode
(
";"
,
$summary
->
overalltestcompetencies
);
$index
=
1
;
foreach
(
$overallcompetencies
as
$comp
)
{
// If the competency was actually assessed by the assignment and tests, add a row in the table.
...
...
@@ -218,8 +219,8 @@ class ViewSubmissionUtils {
$tmp
=
""
;
$tmp
.
=
html_writer
::
tag
(
"td"
,
floatval
(
$showncompetencies
[
index
])
/
floatval
(
$comp
)
.
"%
("
.
$showncompetencies
[
index
]
.
" / "
.
$comp
.
")"
,
floatval
(
$showncompetencies
[
$
index
])
/
floatval
(
$comp
)
.
"%
("
.
$showncompetencies
[
$
index
]
.
" / "
.
$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