Skip to content
Snippets Groups Projects
Commit d3451415 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Only show non-static workflows in delays view filter

parent cf03a68d
No related branches found
No related tags found
No related merge requests found
...@@ -51,9 +51,12 @@ class form_delays_filter extends \moodleform { ...@@ -51,9 +51,12 @@ class form_delays_filter extends \moodleform {
'global' => get_string('globally', 'tool_lifecycle') 'global' => get_string('globally', 'tool_lifecycle')
]; ];
foreach ($activeworkflows as $activeworkflow) { foreach ($activeworkflows as $activeworkflow) {
// Only show non-static workflows.
if (workflow_manager::is_disableable($activeworkflow->id)) {
$workflowoptions[$activeworkflow->id] = get_string('delays_for_workflow', 'tool_lifecycle', $workflowoptions[$activeworkflow->id] = get_string('delays_for_workflow', 'tool_lifecycle',
$activeworkflow->displaytitle); $activeworkflow->displaytitle);
} }
}
$mform->addElement('select', 'workflow', get_string('show_delays', 'tool_lifecycle'), $workflowoptions); $mform->addElement('select', 'workflow', get_string('show_delays', 'tool_lifecycle'), $workflowoptions);
// Use core_course_category for moodle 3.6 and higher. // Use core_course_category for moodle 3.6 and higher.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment