From c79bc8d05b86a5a96808e9e4639e1a07a6ca0f35 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Oct 2014 21:45:24 +0100 Subject: [PATCH] exclude date improvements --- CRM/Core/Form/RecurringEntity.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/Form/RecurringEntity.php b/CRM/Core/Form/RecurringEntity.php index 9560e0a5f1..174796a3a7 100644 --- a/CRM/Core/Form/RecurringEntity.php +++ b/CRM/Core/Form/RecurringEntity.php @@ -332,8 +332,8 @@ class CRM_Core_Form_RecurringEntity { $excludeDateList = array(); if (CRM_Utils_Array::value('copyExcludeDates', $params) && CRM_Utils_Array::value('parent_entity_id', $params)) { //Since we get comma separated values lets get them in array - $exclude_date_list = array(); - $exclude_date_list = explode(",", $params['copyExcludeDates']); + $excludeDates = array(); + $excludeDates = explode(",", $params['copyExcludeDates']); //Check if there exists any values for this option group $optionGroupIdExists = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', @@ -355,7 +355,7 @@ class CRM_Core_Form_RecurringEntity { if ($opGroup->id) { $oldWeight= 0; $fieldValues = array('option_group_id' => $opGroup->id); - foreach($exclude_date_list as $val) { + foreach($excludeDates as $val) { $optionGroupValue = array( 'option_group_id' => $opGroup->id, -- 2.25.1