Skip to content
Snippets Groups Projects
Unverified Commit 5bf266bd authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #19929 from demeritcowboy/fake-intl-warning

financial#171 - False INTL warning when adding a price field
parents b1d87955 d5f5203c
No related branches found
No related tags found
No related merge requests found
......@@ -46,9 +46,9 @@ WHERE id = %1";
}
$details['total_amount_numeric'] = $details['total_amount'];
// fix the display of the monetary value, CRM-4038
$details['total_amount'] = CRM_Utils_Money::formatLocaleNumericRoundedForDefaultCurrency($details['total_amount']);
$details['total_amount'] = CRM_Utils_Money::formatLocaleNumericRoundedForDefaultCurrency($details['total_amount'] ?? 0);
$options = CRM_Core_SelectValues::memberAutoRenew();
$details['auto_renew'] = $options[$details]['auto_renew'] ?? NULL;
$details['auto_renew'] = $options[$details['auto_renew']] ?? NULL;
CRM_Utils_JSON::output($details);
}
......
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