Skip to content
Snippets Groups Projects
Commit a3ee7d2a authored by catch's avatar catch
Browse files

Issue #1343768 by JamesOakley, eMPee584: Fixed make...

Issue #1343768 by JamesOakley, eMPee584: Fixed make update_calculate_project_update_status() work nicely with HEAD releases.
parent 2f2dfda7
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -593,7 +593,10 @@ function update_calculate_project_update_status(&$project_data, $available) { ...@@ -593,7 +593,10 @@ function update_calculate_project_update_status(&$project_data, $available) {
// See if this is a higher major version than our target and yet still // See if this is a higher major version than our target and yet still
// supported. If so, record it as an "Also available" release. // supported. If so, record it as an "Also available" release.
if ($release['version_major'] > $target_major) { // Note: Some projects have a HEAD release from CVS days, which could
// be one of those being compared. They would not have version_major
// set, so we must call isset first.
if (isset($release['version_major']) && $release['version_major'] > $target_major) {
if (in_array($release['version_major'], $supported_majors)) { if (in_array($release['version_major'], $supported_majors)) {
if (!isset($project_data['also'])) { if (!isset($project_data['also'])) {
$project_data['also'] = array(); $project_data['also'] = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment