Merge pull request #3519 from alchemy-fr/PHRAS-3107-tools-rebuildsubdef-issue

PHRAS-3107 #comment merge  Prod - Tools - rebuild subdef, fix issue when selection contents ZIP
This commit is contained in:
Nicolas Maillat
2020-06-05 12:55:28 +02:00
committed by GitHub

View File

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