Skip to content

Commit

Permalink
Merge pull request #22760 from seamuslee001/fix_space_in_paymentproce…
Browse files Browse the repository at this point in the history
…ss_class_name

[REF] Fix issue where spaces in payment_processor_type.name field cau…
  • Loading branch information
demeritcowboy authored Feb 11, 2022
2 parents 8e72cec + 19633ff commit 322b5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Financial/Form/FrontEndPaymentFormTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ protected function addPaymentProcessorFieldsToForm() {
$optAttributes = [];
foreach ($paymentProcessors as $ppKey => $ppval) {
if ($ppKey > 0) {
$optAttributes[$ppKey]['class'] = 'payment_processor_' . strtolower($this->_paymentProcessors[$ppKey]['payment_processor_type']);
$optAttributes[$ppKey]['class'] = 'payment_processor_' . strtolower(CRM_Utils_String::munge($this->_paymentProcessors[$ppKey]['payment_processor_type'], '_', 1000));
}
else {
$optAttributes[$ppKey]['class'] = 'payment_processor_paylater';
Expand Down

0 comments on commit 322b5ee

Please sign in to comment.