Skip to content

Commit

Permalink
BUGFIX: Don't register usage for removed nodes after publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Sep 15, 2021
1 parent afc0d5f commit a31bc25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Service/AssetIntegrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ private function resolveOriginalAssetIdentifier($asset): ?string

public function afterNodePublishing(NodeInterface $node): void
{
// Skip usage in removed nodes
if ($node->isRemoved()) {
return;
}
foreach ($this->getAssetPropertyNamesForNodeType($node->getNodeType()) as $propertyName) {
if (!$node->hasProperty($propertyName)) {
return;
Expand Down

0 comments on commit a31bc25

Please sign in to comment.