From 9d3888dc09ce00d5e2994c50743035d5801755df Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 4 Jun 2014 21:41:15 +1200 Subject: [PATCH] CRM-14793 use longer var name that clarifies what type of field --- CRM/Batch/Form/Entry.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Batch/Form/Entry.php b/CRM/Batch/Form/Entry.php index fabc5f5ffd..9e8f3b36eb 100644 --- a/CRM/Batch/Form/Entry.php +++ b/CRM/Batch/Form/Entry.php @@ -393,7 +393,6 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form { $this->_priceSet = current(CRM_Price_BAO_PriceSet::getSetDetail($priceSetId)); $priceFieldID = CRM_Price_BAO_PriceSet::getOnlyPriceFieldID($this->_priceSet); $priceFieldValueID = CRM_Price_BAO_PriceSet::getOnlyPriceFieldValueID($this->_priceSet); - $fieldID = $priceFieldID; if (isset($params['field'])) { foreach ($params['field'] as $key => $value) { @@ -449,8 +448,8 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form { $value['skipRecentView'] = TRUE; // build line item params - $this->_priceSet['fields'][$fieldID]['options'][$priceFieldValueID ]['amount'] = $value['total_amount']; - $value['price_'.$fieldID] = 1; + $this->_priceSet['fields'][$priceFieldID]['options'][$priceFieldValueID ]['amount'] = $value['total_amount']; + $value['price_'. $priceFieldID] = 1; $lineItem = array(); CRM_Price_BAO_PriceSet::processAmount($this->_priceSet['fields'], $value, $lineItem[$priceSetId]); -- 2.25.1