From c71271186e4852ec39658060eef3b2aac7d124ab Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Wed, 10 Nov 2021 14:15:22 +0000
Subject: [PATCH] ISTWCMS-5195: fixing get event data

---
 src/Service/UwNodeContent.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Service/UwNodeContent.php b/src/Service/UwNodeContent.php
index 6e270342..2c2b4aab 100644
--- a/src/Service/UwNodeContent.php
+++ b/src/Service/UwNodeContent.php
@@ -274,11 +274,11 @@ class UwNodeContent {
     }
 
     if ($node_flags['get_hero']) {
-      $content_data['hero_image'] = $this->addToContentData('sources', 'field_uw_event_listing_page_img');
+      $content_data['hero_image'] = $this->addToContentData('sources', 'field_uw_hero_image');
     }
 
     if ($node_flags['get_listing_image']) {
-      $content_data['listing_image'] = $this->addToContentData('sources', 'field_uw_hero_image');
+      $content_data['listing_image'] = $this->addToContentData('sources', 'field_uw_event_listing_page_img');
     }
 
     // Setup the actual content.
-- 
GitLab