dev/core#341 sybunt custom search date field fix
authorBrian Shaughnessy <brian@lcdservices.biz>
Sat, 18 Aug 2018 14:20:33 +0000 (10:20 -0400)
committerBrian Shaughnessy <brian@lcdservices.biz>
Sat, 18 Aug 2018 14:20:33 +0000 (10:20 -0400)
CRM/Contact/Form/Search/Custom/ContribSYBNT.php

index cf2b1e950be59178278235c38f703c3025eb27f8..8a8703800d5d339fc36bf1e587e4da6689d7ff77 100644 (file)
@@ -404,7 +404,7 @@ AND      c.receive_date < {$this->start_date_1}
    * @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 @@ AND      c.receive_date < {$this->start_date_1}
         $formValues[$element] = date('Y-m-d', strtotime($value));
       }
     }
+
+    return $formValues;
   }
 
 }