From 5d24a0844da9dff15bf4f2e96b4580f9e94e08f8 Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Mon, 25 Feb 2019 21:40:05 +0000 Subject: [PATCH] Add pseudoconstant for payment_processor_id to contributionrecur --- CRM/Contribute/DAO/ContributionRecur.php | 7 ++++++- xml/schema/Contribute/ContributionRecur.xml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/DAO/ContributionRecur.php b/CRM/Contribute/DAO/ContributionRecur.php index 05a29c5637..c87f48afa0 100644 --- a/CRM/Contribute/DAO/ContributionRecur.php +++ b/CRM/Contribute/DAO/ContributionRecur.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionRecur.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1eb0ecd4aadee175dadb66464c06dd25) + * (GenCodeChecksum:e69f645ae471e887f56e95ee10a8678d) */ /** @@ -622,6 +622,11 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO { 'html' => [ 'type' => 'Select', ], + 'pseudoconstant' => [ + 'table' => 'civicrm_payment_processor', + 'keyColumn' => 'id', + 'labelColumn' => 'name', + ] ], 'financial_type_id' => [ 'name' => 'financial_type_id', diff --git a/xml/schema/Contribute/ContributionRecur.xml b/xml/schema/Contribute/ContributionRecur.xml index f9594294a5..9e9145cf8a 100644 --- a/xml/schema/Contribute/ContributionRecur.xml +++ b/xml/schema/Contribute/ContributionRecur.xml @@ -316,6 +316,11 @@ int unsigned Foreign key to civicrm_payment_processor.id 3.3 + + civicrm_payment_processor
+ id + name +
Select -- 2.25.1