public $isRecurringEntityRecord = TRUE;\r
\r
protected $recursion = NULL;\r
+ protected $recursion_start_date = NULL;\r
\r
public static $_entitiesToBeDeleted = array();\r
\r
\r
$count = 1;\r
while ($result = $this->recursion->next()) {\r
+ $skip = FALSE;\r
+ if ($result == $this->recursion_start_date) {\r
+ // skip the recursion-start-date from the list we going to generate\r
+ $skip = TRUE;\r
+ }\r
$baseDate = CRM_Utils_Date::processDate($result->format('Y-m-d H:i:s'));\r
\r
foreach ($this->dateColumns as $col) {\r
$exRangeEndDate = CRM_Utils_Date::processDate($recursionDates[$count][$exRangeEnd], NULL, FALSE, 'Ymd');\r
}\r
\r
- $skip = FALSE;\r
foreach ($this->excludeDates as $exDate) {\r
$exDate = CRM_Utils_Date::processDate($exDate, NULL, FALSE, 'Ymd');\r
if (!$exRangeStart) {\r
$repetitionStartDate = $repetitionStartDate . " " . $formParams['repetition_start_date_time'];\r
}\r
$repetition_start_date = new DateTime($repetitionStartDate);\r
- $repetition_start_date->modify('+1 day');\r
$dbParams['start_action_date'] = CRM_Utils_Date::processDate($repetition_start_date->format('Y-m-d H:i:s'));\r
}\r
\r
$currDate = date("Y-m-d H:i:s");\r
}\r
$start = new DateTime($currDate);\r
+ $this->recursion_start_date = $start;\r
if ($scheduleReminderDetails['repetition_frequency_unit']) {\r
$repetition_frequency_unit = $scheduleReminderDetails['repetition_frequency_unit'];\r
if ($repetition_frequency_unit == "day") {\r