mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +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()) {
|
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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user