mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
fix issuee whe trying to rebuild subdef from tool
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user