Set tag cover photo automatically on upload.

This commit is contained in:
Aaron committed 2017-11-09 17:00:35 +01:00
1 parent 2d77fbdbb7
commit e7e3a4368a
3 files changed
+6 -2

No files matched your search

+3
View File
@@ -40,6 +40,9 @@ class UploadMedia extends HTMLController
$new_ids[] = $asset->getId();
$asset->linkTags([$tag->id_tag]);
$tag->id_asset_thumb = $asset->getId();
$tag->save();
}
if (isset($_REQUEST['format']) && $_REQUEST['format'] === 'json')