Fix a PHP error when accessing OpenStackProvideradminSettingsForm

Created on 7 March 2023, over 1 year ago

Problem/Motivation

When accessing OpenStackProvideradminSettingsForm for the first time, we encounter this PHP error because $vpc_id has not been set yet.

TypeError: Drupal\openstack_provider\Form\Config\OpenStackProviderAdminSettingsForm::getSubnets(): Argument #2 ($vpc_id) must be of type string, null given, called in /var/www/cloud_orchestrator/docroot/modules/contrib/facade/modules/tenants/openstack_provider/src/Form/Config/OpenStackProviderAdminSettingsForm.php on line 286 in Drupal\openstack_provider\Form\Config\OpenStackProviderAdminSettingsForm->getSubnets() (line 561 of /var/www/cloud_orchestrator/docroot/modules/contrib/facade/modules/tenants/openstack_provider/src/Form/Config/OpenStackProviderAdminSettingsForm.php)
๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States baldwinlouie

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

Comments & Activities

Production build 0.71.5 2024