Fix for change selection edit field issue
authorSudha Bisht <sudha.bisht@webaccessglobal.com>
Tue, 16 Jun 2015 13:35:59 +0000 (19:05 +0530)
committerSudha Bisht <sudha.bisht@webaccessglobal.com>
Tue, 16 Jun 2015 13:35:59 +0000 (19:05 +0530)
CRM/Event/BAO/Participant.php

index e92fd0cb0b0590f839e9d4c41d79c9d58aec2f08..6a9e78e98d3d3cce5f3a9b720beb91792292664c 100644 (file)
@@ -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.