mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
Merge pull request #3089 from aynsix/PHRAS-2405-substitue-update-record-table
PHRAS-2405 #comment merge update record type and mimetype when sustitute a document
This commit is contained in:
@@ -73,6 +73,9 @@ class SubdefSubstituer
|
||||
|
||||
$this->createMediaSubdef($record, 'document', $media);
|
||||
|
||||
$record->setMimeType($media->getFile()->getMimeType());
|
||||
$record->setType($media->getType());
|
||||
|
||||
$record->write_metas();
|
||||
|
||||
if ($shouldSubdefsBeRebuilt) {
|
||||
|
Reference in New Issue
Block a user