Skip to content
Snippets Groups Projects
Commit 7e6c6c05 authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3276661 by phenaproxima: Cron version validation runs even if cron updates are disabled

parent a303b7e9
No related branches found
No related tags found
1 merge request!292Issue #3276661: Cron version validation runs even if cron updates are disabled
......@@ -25,7 +25,9 @@ final class CronUpdateVersionValidator extends UpdateVersionValidator {
* {@inheritdoc}
*/
protected static function isStageSupported(Stage $stage): bool {
return $stage instanceof CronUpdater;
// @todo Add test coverage for the call to getMode() in
// https://www.drupal.org/i/3276662.
return $stage instanceof CronUpdater && $stage->getMode() !== CronUpdater::DISABLED;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment