From: Sudha Bisht Date: Tue, 16 Jun 2015 13:35:59 +0000 (+0530) Subject: Fix for change selection edit field issue X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=122a36b9bbfd0e6fd9b5ffc19b1faebc393b5d31;p=civicrm-core.git Fix for change selection edit field issue --- diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index e92fd0cb0b..6a9e78e98d 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -1975,11 +1975,11 @@ SET li.qty = {$vals['qty']}, li.line_total = {$vals['line_total']}, li.tax_amount = {$taxAmount}, li.unit_price = {$vals['unit_price']}, - li.label = '{$vals['label']}' + li.label = %1 WHERE (li.entity_table = 'civicrm_participant' AND li.entity_id = {$participantId}) AND (price_field_value_id = {$valueId}) "; - CRM_Core_DAO::executeQuery($updateLineItem); + CRM_Core_DAO::executeQuery($updateLineItem, array(1 => array($vals['label'], 'String'))); } } // insert new 'adjusted amount' transaction entry and update contribution entry.