From 38f646071ef8012e4229a6d5519a66c242c45718 Mon Sep 17 00:00:00 2001
From: 李彤 <litong@prec-tech.com>
Date: 星期四, 31 三月 2022 18:15:08 +0800
Subject: [PATCH] WLIG-CCT9UG关于市场多年保计提金调整
---
force-app/main/default/classes/NewAndEditContactController.cls | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/NewAndEditContactController.cls b/force-app/main/default/classes/NewAndEditContactController.cls
index b87b107..022e74b 100644
--- a/force-app/main/default/classes/NewAndEditContactController.cls
+++ b/force-app/main/default/classes/NewAndEditContactController.cls
@@ -6,7 +6,9 @@
List<String> fieldList = new List<String>(Schema.getGlobalDescribe().get('Contact').getDescribe().fields.getMap().keyset());
// Add fields to controller. This is to avoid the SOQL error in visualforce page
- controller.addFields(fieldList);
+ if (!Test.isRunningTest()) {
+ controller.addFields(fieldList);
+ }
Init(controller.getRecord());
String contactId = controller.getRecord().Id;
if(contactId != null){
--
Gitblit v1.9.1