From beb584ce08314b382eaa20f313ae3728303b0836 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Fri, 10 Dec 2021 17:55:34 +0000
Subject: [PATCH] ISTWCMS-5214: updating opportunity teaser

---
 src/Service/UwNodeContent.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Service/UwNodeContent.php b/src/Service/UwNodeContent.php
index 4186470e..96185321 100644
--- a/src/Service/UwNodeContent.php
+++ b/src/Service/UwNodeContent.php
@@ -643,7 +643,7 @@ class UwNodeContent {
     $content_data = $this->setupContentData($node_flags);
 
     // Setup the header content.
-    if ($node_flags['get_header']) {
+    if ($node_flags['get_header'] && $view_mode !== 'teaser') {
 
       $content_data['header']['opportunity_type'] = $this->addToContentData('terms', ['field_uw_opportunity_type']);
       $content_data['header']['employment_type'] = $this->addToContentData('terms', ['field_uw_opportunity_employment']);
-- 
GitLab