Skip to content

Commit

Permalink
Fix wrong calculation of courses counts in template context
Browse files Browse the repository at this point in the history
  • Loading branch information
PhMemmel committed May 19, 2023
1 parent 053d163 commit ab2138c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions workflowoverview.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,17 @@
'delayglobally' => $workflow->delayforallworkflows,
'trigger' => array_values($triggers),
'showcoursecounts' => $showcoursecounts,
'automatic' => $showcoursecounts ?? $displaytotaltriggered,
'coursestriggered' => $showcoursecounts ?? $amounts['all']->triggered,
'coursesexcluded' => $showcoursecounts ?? $amounts['all']->excluded,
'coursesetsize' => $showcoursecounts ?? $amounts['all']->coursesetsize,
'steps' => array_values($steps),
'listofcourses' => $arrayofcourses,
'nosteplink' => $nosteplink,
'table' => $out
];
if ($showcoursecounts) {
$data['automatic'] = $displaytotaltriggered;
$data['coursestriggered'] = $amounts['all']->triggered;
$data['coursesexcluded'] = $amounts['all']->excluded;
$data['coursesetsize'] = $amounts['all']->coursesetsize;
}

echo $renderer->header();

Expand Down

0 comments on commit ab2138c

Please sign in to comment.