From 27232585319826c655b70084fffc0a0b706b296e Mon Sep 17 00:00:00 2001
From: Brian Shaughnessy <brian@lcdservices.biz>
Date: Sat, 18 Aug 2018 10:20:33 -0400
Subject: [PATCH] dev/core#341 sybunt custom search date field fix

---
 CRM/Contact/Form/Search/Custom/ContribSYBNT.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CRM/Contact/Form/Search/Custom/ContribSYBNT.php b/CRM/Contact/Form/Search/Custom/ContribSYBNT.php
index cf2b1e950be5..8a8703800d5d 100644
--- a/CRM/Contact/Form/Search/Custom/ContribSYBNT.php
+++ b/CRM/Contact/Form/Search/Custom/ContribSYBNT.php
@@ -404,7 +404,7 @@ public function buildACLClause($tableAlias = 'contact') {
    * @param array $formValues
    *
    */
-  public static function formatSavedSearchFields(&$formValues) {
+  public static function formatSavedSearchFields($formValues) {
     $dateFields = array(
       'start_date_1',
       'end_date_1',
@@ -418,6 +418,8 @@ public static function formatSavedSearchFields(&$formValues) {
         $formValues[$element] = date('Y-m-d', strtotime($value));
       }
     }
+
+    return $formValues;
   }
 
 }