Skip to content

Commit ff8df17

Browse files
authored
Merge pull request #77 from dachcom-digital/object_fix
check against object type
2 parents 6b79e40 + bd9c9c8 commit ff8df17

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

UPGRADE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Upgrade Notes
22

3+
## 3.2.1
4+
- [BUGFIX] Check published state for objects
5+
36
## 3.2.0
47
- [LICENSE] Dual-License with GPL and Dachcom Commercial License (DCL) added
58
- [ENHANCEMENT] Google Worker: Use new namespaces

src/EventListener/PimcoreElementListener.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ public function onObjectPostUpdate(DataObjectEvent $event): void
8181
return;
8282
}
8383

84-
/** @var Concrete $object */
8584
$object = $event->getObject();
85+
if (!$object instanceof Concrete) {
86+
return;
87+
}
8688

8789
$dispatchType = $object->isPublished() === false
8890
? IndexWorkerInterface::TYPE_DELETE

0 commit comments

Comments
 (0)