Skip to content

Commit

Permalink
[REF] Fix issue where spaces in payment_processor_type.name field cau…
Browse files Browse the repository at this point in the history
…ses issues with class output on form
  • Loading branch information
seamuslee001 committed Feb 11, 2022
1 parent bbdc7c8 commit 663677a
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 663677a

Please sign in to comment.