MDL-68010 tool_task: Allow disable tasks to still be run manually

This commit is contained in:
Brendan Heywood
2020-12-15 17:00:26 +11:00
parent d328ef1c9d
commit feda75bdff
+1 -1
View File
@@ -115,7 +115,7 @@ class tool_task_renderer extends plugin_renderer_base {
$disabled = $plugindisabled || $task->get_disabled();
$runnow = '';
if (!$disabled && get_config('tool_task', 'enablerunnow') && $canruntasks ) {
if (!$plugindisabled && get_config('tool_task', 'enablerunnow') && $canruntasks ) {
$runnow = html_writer::div(html_writer::link(
new moodle_url('/admin/tool/task/schedule_task.php',
['task' => $classname]),