From bfca7a84bec815da594f1d12558535ed06d2490b Mon Sep 17 00:00:00 2001
From: 沙世明 <shashiming@prec-tech.com>
Date: 星期二, 13 九月 2022 09:57:32 +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