From: Kurund Jalmi Date: Tue, 15 Sep 2015 06:22:41 +0000 (+0530) Subject: Merge remote-tracking branch 'upstream/4.6' into 4.6-master-2015-09-15-10-14-22 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=638c59ed3d7f7fda62fa581d271c475c473043ce;p=civicrm-core.git Merge remote-tracking branch 'upstream/4.6' into 4.6-master-2015-09-15-10-14-22 Conflicts: CRM/Admin/Form/Setting/Localization.php CRM/Event/BAO/Query.php CRM/Export/BAO/Export.php CRM/Financial/Page/AJAX.php templates/CRM/Event/Form/Registration/Register.tpl tests/phpunit/CRM/Contribute/BAO/ContributionTest.php tests/phpunit/api/v3/ContactTest.php tests/phpunit/api/v3/SyntaxConformanceTest.php --- 638c59ed3d7f7fda62fa581d271c475c473043ce diff --cc CRM/Contribute/BAO/Contribution.php index c81a0e393b,c4f871113b..f2f5c4b86e --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@@ -170,18 -175,11 +173,14 @@@ class CRM_Contribute_BAO_Contribution e $contribution->id = $contributionID; - if (!CRM_Utils_Rule::currencyCode($contribution->currency)) { - $config = CRM_Core_Config::singleton(); - $contribution->currency = $config->defaultCurrency; + if (empty($contribution->id)) { + // (only) on 'create', make sure that a valid currency is set (CRM-16845) + if (!CRM_Utils_Rule::currencyCode($contribution->currency)) { + $config = CRM_Core_Config::singleton(); + $contribution->currency = $config->defaultCurrency; + } } - if ($contributionID && $setPrevContribution) { - $params['prevContribution'] = self::getValues(array('id' => $contributionID), CRM_Core_DAO::$_nullArray, CRM_Core_DAO::$_nullArray); - } - $result = $contribution->save(); // Add financial_trxn details as part of fix for CRM-4724 diff --cc templates/CRM/Event/Form/Registration/Register.tpl index cc9bcab6b6,6261637e40..63628635e2 --- a/templates/CRM/Event/Form/Registration/Register.tpl +++ b/templates/CRM/Event/Form/Registration/Register.tpl @@@ -24,7 -24,21 +24,6 @@@ +--------------------------------------------------------------------+ *} {* Callback snippet: Load payment processor *} - -{if $snippet} - {include file="CRM/Core/BillingBlock.tpl"} -
- {* Put PayPal Express button after customPost block since it's the submit button in this case. *} - {if $paymentProcessor.payment_processor_type EQ 'PayPal_Express'} - {assign var=expressButtonName value='_qf_Register_upload_express'} -
- {ts}Checkout with PayPal{/ts} -
{ts}Click the PayPal button to continue.{/ts}
-
{$form.$expressButtonName.html} Checkout securely. Pay without sharing your financial information. -
-
- {/if} -
-{else} {if $action & 1024} {include file="CRM/Event/Form/Registration/PreviewHeader.tpl"} {/if} @@@ -66,8 -80,8 +65,8 @@@ {/if} {if $form.additional_participants.html} -
+
-
{$form.additional_participants.label}
+
{$form.additional_participants.label} *
{$form.additional_participants.html}{if $contact_id || $contact_id == NULL}   ({ts}including yourself{/ts}){/if}
@@@ -127,12 -145,12 +130,12 @@@ {/if} - {if $form.payment_processor.label} + {if $form.payment_processor_id.label} -