From 08a21f49f2eaf9cfc19ceb67b196cc36ba689305 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 13 五月 2022 20:52:25 +0800
Subject: [PATCH] FIxSWOPageIssue
---
force-app/main/default/triggers/SWOTrigger.trigger | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/triggers/SWOTrigger.trigger b/force-app/main/default/triggers/SWOTrigger.trigger
index 397c7da..8231412 100644
--- a/force-app/main/default/triggers/SWOTrigger.trigger
+++ b/force-app/main/default/triggers/SWOTrigger.trigger
@@ -1,5 +1,8 @@
trigger SWOTrigger on SWO__c (before insert,after insert,before update) {
- if(trigger.isBefore){
+ if((!Test.isRunningTest())&&UserInfo.getUserId()==System.Label.ByPassTrigger){
+ return;
+ }
+ if(trigger.isBefore){
SWOTriggerHandler.setDateTimeSendEmail(trigger.new, trigger.newMap, trigger.old, trigger.oldMap);
}
if(trigger.isAfter && trigger.isInsert){
--
Gitblit v1.9.1