From: unknown Date: Wed, 22 Oct 2014 20:45:24 +0000 (+0100) Subject: exclude date improvements X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c79bc8d05b86a5a96808e9e4639e1a07a6ca0f35;p=civicrm-core.git exclude date improvements --- 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,