Fix dev/core#3168 broken download contribution invoice button
[civicrm-core.git] / CRM / Contribute / Form / SoftCredit.php
index 78a848e9fc88d134a1192bf2e1ea363be41cfd7b..648235a5d7272050c6501dc4c80448867820a13b 100644 (file)
@@ -140,7 +140,7 @@ class CRM_Contribute_Form_SoftCredit {
     if (!empty($form->_softCreditInfo['soft_credit'])) {
       $noSoftCredit = FALSE;
       foreach ($form->_softCreditInfo['soft_credit'] as $key => $value) {
-        $defaults["soft_credit_amount[$key]"] = CRM_Utils_Money::format($value['amount'], NULL, '%a');
+        $defaults["soft_credit_amount[$key]"] = CRM_Utils_Money::formatLocaleNumericRoundedForDefaultCurrency($value['amount']);
         $defaults["soft_credit_contact_id[$key]"] = $value['contact_id'];
         $defaults["soft_credit_type[$key]"] = $value['soft_credit_type'];
       }
@@ -169,7 +169,7 @@ class CRM_Contribute_Form_SoftCredit {
    *   The input form values.
    *
    * @param $errors
-   * @param $self
+   * @param self $self
    *
    * @return array
    *   Array of errors