X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FEvent%2FActionMapping.php;h=031f2688e4a763732d04ec0a226b55e649933119;hb=66ae6ae1a3045b3b766e41c7d8653155da77374a;hp=3d34696b8562ceaa0f6c934797c08aa48c1e7d85;hpb=85a1be13f794b5f9380ed7bdab978ca3b656ef69;p=civicrm-core.git diff --git a/CRM/Event/ActionMapping.php b/CRM/Event/ActionMapping.php index 3d34696b85..031f2688e4 100644 --- a/CRM/Event/ActionMapping.php +++ b/CRM/Event/ActionMapping.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2019 | + | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -158,7 +158,7 @@ class CRM_Event_ActionMapping extends \Civi\ActionSchedule\Mapping { $query['casContactTableAlias'] = NULL; $query['casDateField'] = str_replace('event_', 'r.', $schedule->start_action_date); if (empty($query['casDateField']) && $schedule->absolute_date) { - $query['casDateField'] = $schedule->absolute_date; + $query['casDateField'] = "'" . CRM_Utils_Type::escape($schedule->absolute_date, 'String') . "'"; } $query->join('r', 'INNER JOIN civicrm_event r ON e.event_id = r.id');