From 058da4573f7474896e1cef9187bd1406944a85cd Mon Sep 17 00:00:00 2001 From: divyajose Date: Tue, 28 Nov 2023 14:53:11 +0530 Subject: [PATCH] Fix for attach view to teams error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: CSÉCSY László --- modules/apigee_edge_teams/apigee_edge_teams.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/apigee_edge_teams/apigee_edge_teams.module b/modules/apigee_edge_teams/apigee_edge_teams.module index 1bda20e5..c1e90c49 100644 --- a/modules/apigee_edge_teams/apigee_edge_teams.module +++ b/modules/apigee_edge_teams/apigee_edge_teams.module @@ -177,7 +177,7 @@ function apigee_edge_teams_preprocess(&$variables, $hook) { } $team = \Drupal::routeMatch()->getParameter('team'); - if (!$team || $team->getStatus() !== TeamInterface::STATUS_INACTIVE) { + if (!($team instanceof TeamInterface) || $team->getStatus() !== TeamInterface::STATUS_INACTIVE) { return; }