New bootstrap-based layout #30
@ -42,9 +42,12 @@ class UploadMedia extends HTMLController
|
|||||||
$new_ids[] = $asset->getId();
|
$new_ids[] = $asset->getId();
|
||||||
$asset->linkTags([$tag->id_tag]);
|
$asset->linkTags([$tag->id_tag]);
|
||||||
|
|
||||||
|
if (empty($tag->id_asset_thumb))
|
||||||
|
{
|
||||||
$tag->id_asset_thumb = $asset->getId();
|
$tag->id_asset_thumb = $asset->getId();
|
||||||
$tag->save();
|
$tag->save();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($_REQUEST['format']) && $_REQUEST['format'] === 'json')
|
if (isset($_REQUEST['format']) && $_REQUEST['format'] === 'json')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user