Add better support for issue forks which might not have a valid recommended version

Created on 27 July 2023, over 1 year ago
Updated 1 August 2023, over 1 year ago

Problem/Motivation

The following PHP errors are thrown when an issue fork is being used since the update module might not be able to resolve the correct project version.

Warning: Undefined array key "latest_version" in Drupal\status_dashboard_client\Controller\StatusDashboardClientController->doCheck() (line 111 of /app/application/web/modules/contrib/status_dashboard_client/src/Controller/StatusDashboardClientController.php)

Warning: Undefined array key "recommended" in Drupal\status_dashboard_client\Controller\StatusDashboardClientController->doCheck() (line 112 of /app/application/web/modules/contrib/status_dashboard_client/src/Controller/StatusDashboardClientController.php)

Steps to reproduce

Add an issue fork installation , and attempt a status dashboard check.

Proposed resolution

Add appropriate checks to see if $project_data['recommended'] exists before making use of it.

Remaining tasks

Provide issue fork/patch.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024