Skip to content

Commit

Permalink
changes adopted
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniessh Sethh committed Aug 9, 2018
1 parent abd8ebc commit f0d39e9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CRM/Event/Form/SelfSvcTransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,9 @@ public function postProcess() {
}
else {
//cancel 'from' participant row
$query = "select contact_id from civicrm_email left join civicrm_contact on civicrm_contact.id=civicrm_email.contact_id where email='" . $params['email'] . "' and is_deleted=0";
$dao = CRM_Core_DAO::executeQuery($query);
while ($dao->fetch()) {
$contact_id = $dao->contact_id;
$contact_id = CRM_Core_DAO::singleValueQuery("select contact_id from civicrm_email inner join civicrm_contact on civicrm_contact.id=civicrm_email.contact_id where email=%1 and is_deleted=0 LIMIT 1", array(1 => array($params['email'], 'String')));
if (!$contact_id) {
CRM_Core_Error::statusBounce(ts('Contact does not exist.'));
}
}
$from_participant = $params = array();
Expand Down

0 comments on commit f0d39e9

Please sign in to comment.