Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Serialize key to payment_processor field for Event & Contribution Page #18110

Merged
merged 1 commit into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CRM/Contribute/DAO/ContributionPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Contribute/ContributionPage.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:63bc96be1f5552249e75545940c13bed)
* (GenCodeChecksum:3b175328a05971d3ec719dfaa7dce03c)
*/

/**
Expand Down Expand Up @@ -467,6 +467,7 @@ public static function &fields() {
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'localizable' => 0,
'serialize' => self::SERIALIZE_SEPARATOR_TRIMMED,
'html' => [
'type' => 'Select',
],
Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/ContributionPage/Amount.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ public function postProcess() {
if (array_key_exists('payment_processor', $params) &&
!CRM_Utils_System::isNull($params['payment_processor'])
) {
$params['payment_processor'] = implode(CRM_Core_DAO::VALUE_SEPARATOR, array_keys($params['payment_processor']));
$params['payment_processor'] = array_keys($params['payment_processor']);
}
else {
$params['payment_processor'] = 'null';
Expand Down
3 changes: 2 additions & 1 deletion CRM/Event/DAO/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Event/Event.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:331a210ceb36b5e9460705dbfbe71abf)
* (GenCodeChecksum:ebf6253bf0eaab82a088defb999bc31b)
*/

/**
Expand Down Expand Up @@ -865,6 +865,7 @@ public static function &fields() {
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'localizable' => 0,
'serialize' => self::SERIALIZE_SEPARATOR_TRIMMED,
'html' => [
'type' => 'Select',
],
Expand Down
2 changes: 1 addition & 1 deletion CRM/Event/Form/ManageEvent/Fee.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public function postProcess() {
}

if (!empty($params['payment_processor'])) {
$params['payment_processor'] = implode(CRM_Core_DAO::VALUE_SEPARATOR, array_keys($params['payment_processor']));
$params['payment_processor'] = array_keys($params['payment_processor']);
}
else {
$params['payment_processor'] = 'null';
Expand Down
1 change: 1 addition & 0 deletions xml/schema/Contribute/ContributionPage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
<name>payment_processor</name>
<type>varchar</type>
<length>128</length>
<serialize>SEPARATOR_TRIMMED</serialize>
<comment>Payment Processors configured for this contribution Page</comment>
<pseudoconstant>
<table>civicrm_payment_processor</table>
Expand Down
1 change: 1 addition & 0 deletions xml/schema/Event/Event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
<name>payment_processor</name>
<type>varchar</type>
<length>128</length>
<serialize>SEPARATOR_TRIMMED</serialize>
<comment>Payment Processors configured for this Event (if is_monetary is true)</comment>
<pseudoconstant>
<table>civicrm_payment_processor</table>
Expand Down