diff --git a/modules/cloud_service_providers/aws_cloud/aws_cloud.module b/modules/cloud_service_providers/aws_cloud/aws_cloud.module index ce542687822158c909e6683702e5fc3bb5cbb4c1..3f480a6125360b1498686fa2cd39c4becbf2d41f 100644 --- a/modules/cloud_service_providers/aws_cloud/aws_cloud.module +++ b/modules/cloud_service_providers/aws_cloud/aws_cloud.module @@ -2984,7 +2984,7 @@ function aws_cloud_form_cloud_config_aws_cloud_check_iam_permissions_validate(ar return; } - $regions_selected = $form_state->getFormObject()->getEntity()->isNew() + $regions_selected = $form_state->getFormObject()->getEntity()->isNew() ? array_values(array_filter($form_state->getValue('regions'))) : [$form_state->getValue('field_region')[0]['value']];