diff --git a/controllers/EditAsset.php b/controllers/EditAsset.php index 930d01d..43545f0 100644 --- a/controllers/EditAsset.php +++ b/controllers/EditAsset.php @@ -86,6 +86,10 @@ class EditAsset extends HTMLController $_POST['tag'][$_POST['id_album']] = true; } } + else + { + $_POST['tag'][$currentAlbumId] = true; + } // Handle tags $new_tags = []; diff --git a/templates/EditAssetForm.php b/templates/EditAssetForm.php index 8bc2f5b..4fcecdb 100644 --- a/templates/EditAssetForm.php +++ b/templates/EditAssetForm.php @@ -123,11 +123,16 @@ class EditAssetForm extends Template