mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
update record type and mimetype on sustitute
This commit is contained in:
@@ -73,6 +73,9 @@ class SubdefSubstituer
|
|||||||
|
|
||||||
$this->createMediaSubdef($record, 'document', $media);
|
$this->createMediaSubdef($record, 'document', $media);
|
||||||
|
|
||||||
|
$record->setMimeType($media->getFile()->getMimeType());
|
||||||
|
$record->setType($media->getType());
|
||||||
|
|
||||||
$record->write_metas();
|
$record->write_metas();
|
||||||
|
|
||||||
if ($shouldSubdefsBeRebuilt) {
|
if ($shouldSubdefsBeRebuilt) {
|
||||||
|
Reference in New Issue
Block a user