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:
Nicolas Maillat
2019-07-02 12:18:04 +02:00
committed by GitHub

View File

@@ -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) {