Skip to content

Commit

Permalink
asofDate gets used as constructor to DateTime which wants a string
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcclelland committed Mar 29, 2024
1 parent 9de8ca7 commit 69367fd
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 69367fd

Please sign in to comment.