From 25ad69f2dd84e9589510005a3a9d36f5edf785ff Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 19 Aug 2021 17:07:23 -0400 Subject: [PATCH] Add no-prefetch campaign pseudoconstant --- CRM/Activity/DAO/Activity.php | 8 +++++++- CRM/Campaign/DAO/CampaignGroup.php | 8 +++++++- CRM/Campaign/DAO/Survey.php | 8 +++++++- CRM/Contribute/DAO/ContributionPage.php | 8 +++++++- CRM/Contribute/DAO/ContributionRecur.php | 8 +++++++- CRM/Event/DAO/Event.php | 8 +++++++- CRM/Event/DAO/Participant.php | 8 +++++++- CRM/Mailing/DAO/Mailing.php | 8 +++++++- CRM/Member/DAO/Membership.php | 8 +++++++- CRM/Pledge/DAO/Pledge.php | 8 +++++++- xml/schema/Activity/Activity.xml | 6 ++++++ xml/schema/Campaign/CampaignGroup.xml | 6 ++++++ xml/schema/Campaign/Survey.xml | 6 ++++++ xml/schema/Contribute/ContributionPage.xml | 6 ++++++ xml/schema/Contribute/ContributionRecur.xml | 6 ++++++ xml/schema/Event/Event.xml | 6 ++++++ xml/schema/Event/Participant.xml | 6 ++++++ xml/schema/Mailing/Mailing.xml | 6 ++++++ xml/schema/Member/Membership.xml | 6 ++++++ xml/schema/Pledge/Pledge.xml | 6 ++++++ 20 files changed, 130 insertions(+), 10 deletions(-) diff --git a/CRM/Activity/DAO/Activity.php b/CRM/Activity/DAO/Activity.php index 3fd10d995e..a3cf77585f 100644 --- a/CRM/Activity/DAO/Activity.php +++ b/CRM/Activity/DAO/Activity.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Activity/Activity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3724c8dbc64bff361edd263e78780dbe) + * (GenCodeChecksum:3a511b57e91904eb91c445524853106a) */ /** @@ -686,6 +686,12 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '3.4', ], 'activity_engagement_level' => [ diff --git a/CRM/Campaign/DAO/CampaignGroup.php b/CRM/Campaign/DAO/CampaignGroup.php index 4e57abbf6c..0e559e1d1d 100644 --- a/CRM/Campaign/DAO/CampaignGroup.php +++ b/CRM/Campaign/DAO/CampaignGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Campaign/CampaignGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:223af3013edf80baca1b0cde031cad41) + * (GenCodeChecksum:978c5e6110b6905764ed276943711ac4) */ /** @@ -141,6 +141,12 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '3.3', ], 'group_type' => [ diff --git a/CRM/Campaign/DAO/Survey.php b/CRM/Campaign/DAO/Survey.php index ff8493c33f..b46e6235c0 100644 --- a/CRM/Campaign/DAO/Survey.php +++ b/CRM/Campaign/DAO/Survey.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Campaign/Survey.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4b168e929887a0c86a634bb72d4f317a) + * (GenCodeChecksum:45c10db72afe877c41ddb78b79153648) */ /** @@ -278,6 +278,12 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '3.3', ], 'activity_type_id' => [ diff --git a/CRM/Contribute/DAO/ContributionPage.php b/CRM/Contribute/DAO/ContributionPage.php index 6e7510f754..83270c9b3d 100644 --- a/CRM/Contribute/DAO/ContributionPage.php +++ b/CRM/Contribute/DAO/ContributionPage.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionPage.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:bba87623f1ecb7c432b3e59cb159b5ea) + * (GenCodeChecksum:5f0160b47f79e1eeb1f920b4e221953d) */ /** @@ -1059,6 +1059,12 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '3.4', ], 'is_share' => [ diff --git a/CRM/Contribute/DAO/ContributionRecur.php b/CRM/Contribute/DAO/ContributionRecur.php index 967b890b5e..4913ac61c7 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:b51d7abea248616355265be7ec255050) + * (GenCodeChecksum:6c94785d608dc72c00b663ee8ad4e180) */ /** @@ -788,6 +788,12 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '4.1', ], 'is_email_receipt' => [ diff --git a/CRM/Event/DAO/Event.php b/CRM/Event/DAO/Event.php index e1391f4ac6..0b340c956f 100644 --- a/CRM/Event/DAO/Event.php +++ b/CRM/Event/DAO/Event.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Event.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4b2cc938c8bb6e8bcba91513d109ff5f) + * (GenCodeChecksum:51b2702ee6856d74a9f38e9cf86da5bf) */ /** @@ -1668,6 +1668,12 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '3.4', ], 'is_share' => [ diff --git a/CRM/Event/DAO/Participant.php b/CRM/Event/DAO/Participant.php index 3e891d8ae1..74b25157d2 100644 --- a/CRM/Event/DAO/Participant.php +++ b/CRM/Event/DAO/Participant.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Participant.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0e7f61919241631110f216e80d72d845) + * (GenCodeChecksum:fcaf9990a79e1ea3bd799a6ff75db893) */ /** @@ -526,6 +526,12 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '3.4', ], 'discount_amount' => [ diff --git a/CRM/Mailing/DAO/Mailing.php b/CRM/Mailing/DAO/Mailing.php index 1ca7c178ab..3c77c46160 100644 --- a/CRM/Mailing/DAO/Mailing.php +++ b/CRM/Mailing/DAO/Mailing.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Mailing.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4c28acf96d01fa990a3af7f2d72344b5) + * (GenCodeChecksum:0889788ebb2ad430999bb9eda9524621) */ /** @@ -1029,6 +1029,12 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '3.4', ], 'dedupe_email' => [ diff --git a/CRM/Member/DAO/Membership.php b/CRM/Member/DAO/Membership.php index c1d0ef01f3..51b16d4014 100644 --- a/CRM/Member/DAO/Membership.php +++ b/CRM/Member/DAO/Membership.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Member/Membership.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e364568e0284363b3a9141823215c536) + * (GenCodeChecksum:fd3bcddc97a226b449f26e3280ef2ace) */ /** @@ -526,6 +526,12 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '3.4', ], ]; diff --git a/CRM/Pledge/DAO/Pledge.php b/CRM/Pledge/DAO/Pledge.php index ab4a7c6829..7a9a764e43 100644 --- a/CRM/Pledge/DAO/Pledge.php +++ b/CRM/Pledge/DAO/Pledge.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Pledge/Pledge.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:49bcf54cf3de315f6e8f07519eb1b5f2) + * (GenCodeChecksum:bcc7d49479de858804a09bf49c1ebda9) */ /** @@ -678,6 +678,12 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO { 'type' => 'EntityRef', 'label' => ts("Campaign"), ], + 'pseudoconstant' => [ + 'table' => 'civicrm_campaign', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + 'prefetch' => 'FALSE', + ], 'add' => '3.4', ], ]; diff --git a/xml/schema/Activity/Activity.xml b/xml/schema/Activity/Activity.xml index e2ace4d164..2b6c5195c9 100644 --- a/xml/schema/Activity/Activity.xml +++ b/xml/schema/Activity/Activity.xml @@ -361,6 +361,12 @@ EntityRef + + civicrm_campaign
+ id + title + FALSE +
campaign_id diff --git a/xml/schema/Campaign/CampaignGroup.xml b/xml/schema/Campaign/CampaignGroup.xml index 6d3880d3fd..317c9ee506 100644 --- a/xml/schema/Campaign/CampaignGroup.xml +++ b/xml/schema/Campaign/CampaignGroup.xml @@ -33,6 +33,12 @@ 3.3 + + civicrm_campaign
+ id + title + FALSE +
campaign_id diff --git a/xml/schema/Campaign/Survey.xml b/xml/schema/Campaign/Survey.xml index 93398c2bba..e57a3b1f4d 100644 --- a/xml/schema/Campaign/Survey.xml +++ b/xml/schema/Campaign/Survey.xml @@ -47,6 +47,12 @@ 3.3 + + civicrm_campaign
+ id + title + FALSE +
campaign_id diff --git a/xml/schema/Contribute/ContributionPage.xml b/xml/schema/Contribute/ContributionPage.xml index 9e7423608e..3402bb63fb 100644 --- a/xml/schema/Contribute/ContributionPage.xml +++ b/xml/schema/Contribute/ContributionPage.xml @@ -445,6 +445,12 @@ 3.4 + + civicrm_campaign
+ id + title + FALSE +
campaign_id diff --git a/xml/schema/Contribute/ContributionRecur.xml b/xml/schema/Contribute/ContributionRecur.xml index e8782fe16b..bc8e0eafe0 100644 --- a/xml/schema/Contribute/ContributionRecur.xml +++ b/xml/schema/Contribute/ContributionRecur.xml @@ -428,6 +428,12 @@ EntityRef + + civicrm_campaign
+ id + title + FALSE +
campaign_id diff --git a/xml/schema/Event/Event.xml b/xml/schema/Event/Event.xml index 10c768ca80..a90b01446b 100644 --- a/xml/schema/Event/Event.xml +++ b/xml/schema/Event/Event.xml @@ -797,6 +797,12 @@ EntityRef + + civicrm_campaign
+ id + title + FALSE +
campaign_id diff --git a/xml/schema/Event/Participant.xml b/xml/schema/Event/Participant.xml index 4899849f95..e06493f302 100644 --- a/xml/schema/Event/Participant.xml +++ b/xml/schema/Event/Participant.xml @@ -272,6 +272,12 @@ 3.4 + + civicrm_campaign
+ id + title + FALSE +
campaign_id diff --git a/xml/schema/Mailing/Mailing.xml b/xml/schema/Mailing/Mailing.xml index c5e65fe046..0cddc59635 100644 --- a/xml/schema/Mailing/Mailing.xml +++ b/xml/schema/Mailing/Mailing.xml @@ -465,6 +465,12 @@ EntityRef + + civicrm_campaign
+ id + title + FALSE +
campaign_id diff --git a/xml/schema/Member/Membership.xml b/xml/schema/Member/Membership.xml index 06f6a75c53..3ed25d6adc 100644 --- a/xml/schema/Member/Membership.xml +++ b/xml/schema/Member/Membership.xml @@ -288,6 +288,12 @@ EntityRef + + civicrm_campaign
+ id + title + FALSE +
campaign_id diff --git a/xml/schema/Pledge/Pledge.xml b/xml/schema/Pledge/Pledge.xml index 9cd1566999..6f3a9a840e 100644 --- a/xml/schema/Pledge/Pledge.xml +++ b/xml/schema/Pledge/Pledge.xml @@ -341,6 +341,12 @@ EntityRef + + civicrm_campaign
+ id + title + FALSE +
campaign_id -- 2.25.1