diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index b6fb3864..1aae1641 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -319,6 +319,9 @@ HTML; $files = DataObject::get("File", "`File`.ID IN ($fileList)"); if($files) { foreach($files as $file) { + if($file instanceof Image) { + $file->deleteFormattedImages(); + } $file->ParentID = $destFolderID; $file->write(); $numFiles++;