Trigger Handler functionality (small bugfix)
A trigger handler based on trigger actions configured via custom metadata. It separates the trigger logic per class, and is utilizing the fflib_UnitOfWork to execute the trigger actions. Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
This commit is contained in:
@@ -149,7 +149,8 @@ public virtual with sharing class fflib_TriggerHandler
|
||||
|
||||
private fflib_ITriggerContext getTriggerContext()
|
||||
{
|
||||
if (triggerContext == null) constructTriggerContext();
|
||||
if (triggerContext == null) triggerContext = constructTriggerContext();
|
||||
|
||||
return triggerContext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user