From e8e49078ab36fad2df00833de90d61c7798c372f Mon Sep 17 00:00:00 2001 From: Divyajose <75604843+divya-intelli@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:09:21 +0530 Subject: [PATCH] Fix for attach view to teams error (#996) 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 1bda20e58..c1e90c493 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; }