We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7346d6a commit 0812c25Copy full SHA for 0812c25
src/Event/PimcoreObjectEventListener.php
@@ -63,7 +63,10 @@ public function onPreUpdate(ElementEventInterface $e)
63
64
public function onPostUpdate(ElementEventInterface $e)
65
{
66
- if (!$e instanceof DataObjectEvent) {
+ // Do not process the event any further in either cases of autoSave, save version only or the event not being an instance of DataObject
67
+ if (($e->hasArgument('isAutoSave') && $e->getArgument('isAutoSave')) ||
68
+ ($e->hasArgument('saveVersionOnly') && $e->getArgument('saveVersionOnly')) ||
69
+ !$e instanceof DataObjectEvent) {
70
return;
71
}
72
0 commit comments