diff --git a/modules/system/controllers/Updates.php b/modules/system/controllers/Updates.php index d520eb212..e8959381a 100644 --- a/modules/system/controllers/Updates.php +++ b/modules/system/controllers/Updates.php @@ -332,6 +332,26 @@ class Updates extends Controller protected function processImportantUpdates($result) { $hasImportantUpdates = false; + + /* + * Core + */ + $coreImportant = false; + + foreach (array_get($result, 'core.updates', []) as $build => $description) { + if (strpos($description, '!!!') === false) continue; + + $detailsUrl = '//octobercms.com/support/articles/release-notes'; + $description = str_replace('!!!', '', $description); + $result['core']['updates'][$build] = [$description, $detailsUrl]; + $coreImportant = $hasImportantUpdates = true; + } + + $result['core']['isImportant'] = $coreImportant ? '1' : '0'; + + /* + * Plugins + */ foreach (array_get($result, 'plugins', []) as $code => $plugin) { $isImportant = false; @@ -348,6 +368,7 @@ class Updates extends Controller } $result['hasImportantUpdates'] = $hasImportantUpdates; + return $result; } diff --git a/modules/system/controllers/updates/_update_list.htm b/modules/system/controllers/updates/_update_list.htm index f1ee3158e..6e16f13e8 100644 --- a/modules/system/controllers/updates/_update_list.htm +++ b/modules/system/controllers/updates/_update_list.htm @@ -11,8 +11,19 @@