From 16d350c74ec4d8bce9e214926c8106f0866ecc36 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Mon, 31 Jan 2022 15:51:32 +0000
Subject: [PATCH] ISTWCMS-5337: return proper values for project members

---
 src/Service/UwNodeFieldValue.php | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/Service/UwNodeFieldValue.php b/src/Service/UwNodeFieldValue.php
index 11ff7efa..02136882 100644
--- a/src/Service/UwNodeFieldValue.php
+++ b/src/Service/UwNodeFieldValue.php
@@ -704,9 +704,6 @@ class UwNodeFieldValue {
       // Get the date query parameter.
       $date_parameter = $this->requestStack->getCurrentRequest()->query->get('date');
 
-      // Get the date type query parameter.
-      $date_type = $this->requestStack->getCurrentRequest()->query->get('date_type');
-
       // If there is a date query parameter, convert
       // to timestamp so we can compare against dates
       // in the event.  If there is no parameter, set
@@ -724,9 +721,9 @@ class UwNodeFieldValue {
 
         // ISTWCMS-5088: we need to ensure that at least
         // some dates show on the node page, so let's just
-        // display them all or if operator is >=.
+        // display them all.
         // If not node page, only get dates in the future.
-        if ($view_mode == 'full' || ($date_type !== '>=')) {
+        if ($view_mode == 'full') {
 
           $return_dates[] = $this->getDate($date, 'event');
         }
-- 
GitLab