Skip to content

Commit 2647d98

Browse files
committed
fix usedcourses
1 parent 87a991d commit 2647d98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

classes/processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public function get_count_of_courses_to_trigger_for_workflow($workflow) {
401401
$course = $recordset->current();
402402
if ($course->hasprocess) {
403403
if ($course->workflowid && ($course->workflowid != $workflow->id)) {
404-
$usedcourses++;
404+
$usedcourses[] = $course->id;
405405
}
406406
} else if ($course->delay) {
407407
$countdelayed++;

workflowoverview.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@
354354
$table->out(PAGESIZE, false);
355355
$out = ob_get_contents();
356356
ob_end_clean();
357-
$hiddenfieldssearch[] = ['name' => 'used', 'value' => '1'];
357+
$hiddenfieldssearch[] = ['name' => 'used', 'value' => $used];
358358
}
359359
}
360360
// Search box for courses list.

0 commit comments

Comments
 (0)