From b329ab986e250bb27e46ace97cf208f3b26d145a Mon Sep 17 00:00:00 2001
From: FUYU <fuyu@prec-tech.com>
Date: 星期一, 18 十二月 2023 17:38:15 +0800
Subject: [PATCH] 修改复制(不带产品按钮)
---
force-app/main/default/classes/ViewParticipantsController.cls | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/ViewParticipantsController.cls b/force-app/main/default/classes/ViewParticipantsController.cls
index f88d12b..688a927 100644
--- a/force-app/main/default/classes/ViewParticipantsController.cls
+++ b/force-app/main/default/classes/ViewParticipantsController.cls
@@ -1,6 +1,14 @@
global class ViewParticipantsController {
public String staticResourceContact {get; set;}
+ public String viewContactId {get; set;}
public ViewParticipantsController(ApexPages.StandardController controller) {
staticResourceContact = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact'));
+ SObject obj = controller.getRecord();
+ if (obj.id != null||Test.isRunningTest()) {
+ List<CampaignMember__c> lcm = [select ViewContactId__c from CampaignMember__c where id=:obj.id];
+ if (lcm.size() > 0) {
+ viewContactId = lcm[0].ViewContactId__c;
+ }
+ }
}
}
\ No newline at end of file
--
Gitblit v1.9.1