Skip to content

Commit

Permalink
CTP-3094 Restore the sequence number as a separate column
Browse files Browse the repository at this point in the history
CTP-3095 Remove percentage string in assessment component name and add percentage to weight number
  • Loading branch information
aydevworks committed Feb 8, 2024
1 parent 8bd5171 commit 51489f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/output/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ public function render_dashboard(array $moduledeliveries, int $courseid) : strin
if (!empty($moduledelivery->componentgrades) && is_array($moduledelivery->componentgrades)) {
$componentgrades = array_values($moduledelivery->componentgrades);
foreach ($componentgrades as $componentgrade) {
// Remove percentage from mab name.
$componentgrade->mabname = preg_replace('/\s*\(\d+%?\)$/', '', $componentgrade->mabname);

// Add the select source url.
$selectsourceurl = new \moodle_url(
'/local/sitsgradepush/select_source.php',
Expand Down

0 comments on commit 51489f9

Please sign in to comment.