From eee335e803de1353b04e30edb0cddadf6993df4b Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Mon, 21 Sep 2015 13:28:43 -0400 Subject: [PATCH] Priceset/debugwatchdog --- CRM/Contribute/Form/ContributionBase.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index bf2978268c..64975747c9 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -1367,7 +1367,11 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { $this->_params['is_recur'] = $this->_values['is_recur'] = 1; // check if price set is not quick config if (!empty($this->_params['priceSetId']) && !CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $this->_params['priceSetId'], 'is_quick_config')) { - list($this->_params['frequency_interval'], $this->_params['frequency_unit']) = CRM_Price_BAO_PriceSet::getRecurDetails($this->_params['priceSetId']); + // based on Lisa's commit 520680c63f7b886643e80c2400d9e9b6f1a1fd52 + // Extract the ids for all of the line items that have been + // chosen. + $priceFieldValueIds = array_keys($this->_lineItem[$this->_params['priceSetId']]); + list($this->_params['frequency_interval'], $this->_params['frequency_unit']) = CRM_Price_BAO_PriceSet::getRecurDetails($this->_params['priceSetId'], $priceFieldValueIds); } else { // FIXME: set interval and unit based on selected membership type -- 2.25.1