Skip to content
Snippets Groups Projects
Commit 87611a89 authored by alani's avatar alani
Browse files

add T_TIMESTAMP to be recognized as date field

parent 65bf7e9d
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,7 @@ abstract class CRM_CivirulesConditions_Generic_ValueComparison extends CRM_Civir
$dateType = CRM_Utils_Type::T_DATE;
$timeType = CRM_Utils_Type::T_TIME;
$dateTimeType = $dateType + $timeType;
$timestampType = CRM_Utils_Type::T_TIMESTAMP;
$fields = civicrm_api3(
$entity,
......@@ -131,6 +132,7 @@ abstract class CRM_CivirulesConditions_Generic_ValueComparison extends CRM_Civir
case $dateType:
case $timeType:
case $dateTimeType:
case $timestampType:
$isDate = true;
return $isDate;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment