From 2ef60934149ae9067bf90094bafc2f7a1807d0c5 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Thu, 6 Nov 2014 18:21:58 +0530 Subject: [PATCH] CRM-15563 fix - Reminder is_repeat checkbox / column value should be reset if user sets absolute date for a reminder https://issues.civicrm.org/jira/browse/CRM-15563 --- CRM/Admin/Form/ScheduleReminders.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Form/ScheduleReminders.php b/CRM/Admin/Form/ScheduleReminders.php index 39c55aaed1..af3cb0986e 100644 --- a/CRM/Admin/Form/ScheduleReminders.php +++ b/CRM/Admin/Form/ScheduleReminders.php @@ -366,6 +366,8 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form { $params[$key] = CRM_Utils_Array::value($key, $values); } + $params['is_repeat'] = CRM_Utils_Array::value('is_repeat', $values, 0); + $moreKeys = array( 'start_action_offset', 'start_action_unit', @@ -381,6 +383,7 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form { if ($absoluteDate = CRM_Utils_Array::value('absolute_date', $params)) { $params['absolute_date'] = CRM_Utils_Date::processDate($absoluteDate); + $params['is_repeat'] = 0; foreach ($moreKeys as $mkey) { $params[$mkey] = 'null'; } @@ -426,7 +429,6 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form { } $params['is_active'] = CRM_Utils_Array::value('is_active', $values, 0); - $params['is_repeat'] = CRM_Utils_Array::value('is_repeat', $values, 0); if (CRM_Utils_Array::value('is_repeat', $values) == 0) { $params['repetition_frequency_unit'] = 'null'; -- 2.25.1