Skip to content

Commit

Permalink
Merge pull request #13702 from mattwire/contributionrecur_payprocid_p…
Browse files Browse the repository at this point in the history
…seudoconstant_schema

Add pseudoconstant for payment_processor_id to contributionrecur
  • Loading branch information
seamuslee001 authored Feb 26, 2019
2 parents f20312c + 5d24a08 commit 70f6eb8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CRM/Contribute/DAO/ContributionRecur.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Contribute/ContributionRecur.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:1eb0ecd4aadee175dadb66464c06dd25)
* (GenCodeChecksum:e69f645ae471e887f56e95ee10a8678d)
*/

/**
Expand Down Expand Up @@ -622,6 +622,11 @@ public static function &fields() {
'html' => [
'type' => 'Select',
],
'pseudoconstant' => [
'table' => 'civicrm_payment_processor',
'keyColumn' => 'id',
'labelColumn' => 'name',
]
],
'financial_type_id' => [
'name' => 'financial_type_id',
Expand Down
5 changes: 5 additions & 0 deletions xml/schema/Contribute/ContributionRecur.xml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@
<type>int unsigned</type>
<comment>Foreign key to civicrm_payment_processor.id</comment>
<add>3.3</add>
<pseudoconstant>
<table>civicrm_payment_processor</table>
<keyColumn>id</keyColumn>
<labelColumn>name</labelColumn>
</pseudoconstant>
<html>
<type>Select</type>
</html>
Expand Down

0 comments on commit 70f6eb8

Please sign in to comment.