Skip to content
Snippets Groups Projects
Commit df41b0f1 authored by Jaap Jansma's avatar Jaap Jansma
Browse files

Merge pull request #70 from alani1/patch-1

add T_TIMESTAMP to be recognized as date field in condition field compare
parents 65bf7e9d 87611a89
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