File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3862,7 +3862,9 @@ public function DBUpdate()
3862
3862
*/
3863
3863
protected function PostUpdateActions (array $ aChanges ): void
3864
3864
{
3865
- $ this ->FireEventAfterWrite ($ aChanges , false , $ this ->sStimulusBeingApplied );
3865
+ $ sStimulusBeingApplied = $ this ->sStimulusBeingApplied ;
3866
+ $ this ->sStimulusBeingApplied = null ;
3867
+ $ this ->FireEventAfterWrite ($ aChanges , false , $ sStimulusBeingApplied );
3866
3868
$ oKPI = new ExecutionKPI ();
3867
3869
$ this ->AfterUpdate ();
3868
3870
$ oKPI ->ComputeStatsForExtension ($ this , 'AfterUpdate ' );
@@ -3874,9 +3876,8 @@ protected function PostUpdateActions(array $aChanges): void
3874
3876
$ this ->ActivateOnObjectUpdateTriggersForTargetObjects ();
3875
3877
3876
3878
$ sClass = get_class ($ this );
3877
- if (utils::IsNotNullOrEmptyString ($ this -> sStimulusBeingApplied ))
3879
+ if (utils::IsNotNullOrEmptyString ($ sStimulusBeingApplied ))
3878
3880
{
3879
- $ this ->sStimulusBeingApplied = null ;
3880
3881
$ sStateAttCode = MetaModel::GetStateAttributeCode ($ sClass );
3881
3882
$ sPreviousState = $ this ->m_aPreviousValuesForUpdatedAttributes [$ sStateAttCode ];
3882
3883
// Change state triggers...
You can’t perform that action at this time.
0 commit comments