fix issuee whe trying to rebuild subdef from tool

This commit is contained in:
aynsix
2020-06-03 17:52:21 +03:00
parent fe0d9178e1
commit 1057cb0493

View File

@@ -54,6 +54,7 @@ class RecordSubscriber implements EventSubscriberInterface
if (!$record->isStory()) {
$subdefs = $record->getDatabox()->get_subdef_structure()->getSubdefGroup($record->getType());
if ($subdefs !==null) {
foreach ($subdefs as $subdef) {
$payload = [
'message_type' => MessagePublisher::SUBDEF_CREATION_TYPE,
@@ -69,6 +70,7 @@ class RecordSubscriber implements EventSubscriberInterface
}
}
}
}
public function onDelete(DeleteEvent $event)
{