Skip to content
Snippets Groups Projects
Commit 47b19837 authored by Olaf Buddenhagen's avatar Olaf Buddenhagen
Browse files

Fix localisation error in DB upgrade script

The upgrade script for 4.3.6 has a hard-coded lookup for the 'Credit
Card' payment_instrument, but uses the (default) `label` column for the
lookup, which is localised -- i.e. the upgrade fails fatally on any
setup where the 'Credit Card' label is translated.

Fix by using the non-localised `name` column instead.
parent a294f3e5
No related branches found
No related tags found
No related merge requests found
......@@ -921,7 +921,7 @@ WHERE ceft.entity_table = 'civicrm_contribution' AND cc.contribution_recur_id I
AND ceft1.entity_table = 'civicrm_financial_item' AND cft.id IS NOT NULL AND cft.payment_instrument_id = %1
ORDER BY cft.id ";
$paymentInstrument = CRM_Contribute_PseudoConstant::paymentInstrument();
$paymentInstrument = CRM_Contribute_PseudoConstant::paymentInstrument('name');
$param = array(1 => array(array_search('Credit Card', $paymentInstrument), 'Integer'));
$dao = CRM_Core_DAO::executeQuery($sql, $param);
$financialTrxn = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment