mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
stop to try to write metadata on story (#4433)
This commit is contained in:
@@ -162,6 +162,9 @@ class RecordSubscriber implements EventSubscriberInterface
|
|||||||
|
|
||||||
$databox = $this->getApplicationBox()->get_databox($databoxId);
|
$databox = $this->getApplicationBox()->get_databox($databoxId);
|
||||||
$record = $databox->get_record($recordId);
|
$record = $databox->get_record($recordId);
|
||||||
|
|
||||||
|
// do not try to write meta on non story record
|
||||||
|
if (!$record->isStory()) {
|
||||||
$type = $record->getType();
|
$type = $record->getType();
|
||||||
|
|
||||||
$subdefGroupe = $record->getDatabox()->get_subdef_structure()->getSubdefGroup($record->getType());
|
$subdefGroupe = $record->getDatabox()->get_subdef_structure()->getSubdefGroup($record->getType());
|
||||||
@@ -211,6 +214,7 @@ class RecordSubscriber implements EventSubscriberInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function onStoryCreateCover(StoryCreateCoverEvent $event)
|
public function onStoryCreateCover(StoryCreateCoverEvent $event)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user