update record type and mimetype on sustitute

This commit is contained in:
aina-esokia
2019-07-01 18:15:08 +04:00
parent 22e3605153
commit 0263f7b5a5

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