Skip to content

Commit

Permalink
Merge pull request #29858 from jmcclelland/string-not-null-date
Browse files Browse the repository at this point in the history
asofDate gets used as constructor to DateTime which wants a string
  • Loading branch information
yashodha authored Apr 1, 2024
2 parents 3b5affe + 69367fd commit 6d75858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contact/BAO/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -5504,7 +5504,7 @@ public function ageRangeQueryBuilder(

$asofDateValues = $this->getWhereValues("{$fieldName}_asof_date", $grouping);
// will be treated as current day
$asofDate = NULL;
$asofDate = '';
if ($asofDateValues) {
$asofDate = CRM_Utils_Date::processDate($asofDateValues[2]);
$asofDateFormat = CRM_Utils_Date::customFormat(substr($asofDate, 0, 8));
Expand Down

0 comments on commit 6d75858

Please sign in to comment.