From de62b11fd2203816306ba94226874b2e62420e83 Mon Sep 17 00:00:00 2001
From: GWY <guweiyiscp096@foxmail.com>
Date: 星期五, 15 四月 2022 09:42:05 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlympusSSBG
---
force-app/main/default/triggers/UserFaultInfoTrigger.trigger | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/triggers/UserFaultInfoTrigger.trigger b/force-app/main/default/triggers/UserFaultInfoTrigger.trigger
index 57fa782..43654bc 100644
--- a/force-app/main/default/triggers/UserFaultInfoTrigger.trigger
+++ b/force-app/main/default/triggers/UserFaultInfoTrigger.trigger
@@ -1,4 +1,7 @@
trigger UserFaultInfoTrigger on User_FaultInfo__c (after insert,before update,before insert) {
+ if((!Test.isRunningTest())&&UserInfo.getUserId()==System.Label.ByPassTrigger){
+ return;
+ }
if(Trigger.isBefore && Trigger.isUpdate){
UserFaultInfoHandler.UserFaultInfoWorkingHoursAssignment(Trigger.new, Trigger.newMap, Trigger.old, Trigger.oldMap,'');
--
Gitblit v1.9.1