Merge branch 'master' of https://github.com/alchemy-fr/Phraseanet into PHRAS-2507_Enhance_addplugin_downloadplugin

This commit is contained in:
aina-esokia
2019-07-02 15:35:51 +04:00

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