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

Fix redirect for workflow settings actions

parent 8e9e995c
No related branches found
No related tags found
No related merge requests found
...@@ -263,7 +263,7 @@ class workflow_manager { ...@@ -263,7 +263,7 @@ class workflow_manager {
// If no action has been called. Continue. // If no action has been called. Continue.
return; return;
} }
if (!defined('PHPUNIT_TEST')) { if (!defined('PHPUNIT_TEST') || !PHPUNIT_TEST) {
// In case of a called action, redirect to mainview. // In case of a called action, redirect to mainview.
redirect(new \moodle_url('/admin/tool/lifecycle/adminsettings.php')); redirect(new \moodle_url('/admin/tool/lifecycle/adminsettings.php'));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment