Skip to content

Commit

Permalink
Merge pull request #77 from dachcom-digital/object_fix
Browse files Browse the repository at this point in the history
check against object type
  • Loading branch information
solverat authored Dec 18, 2024
2 parents 6b79e40 + bd9c9c8 commit ff8df17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Upgrade Notes

## 3.2.1
- [BUGFIX] Check published state for objects

## 3.2.0
- [LICENSE] Dual-License with GPL and Dachcom Commercial License (DCL) added
- [ENHANCEMENT] Google Worker: Use new namespaces
Expand Down
4 changes: 3 additions & 1 deletion src/EventListener/PimcoreElementListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ public function onObjectPostUpdate(DataObjectEvent $event): void
return;
}

/** @var Concrete $object */
$object = $event->getObject();
if (!$object instanceof Concrete) {
return;
}

$dispatchType = $object->isPublished() === false
? IndexWorkerInterface::TYPE_DELETE
Expand Down

0 comments on commit ff8df17

Please sign in to comment.