Fix logic when saving an Artwork that has a new image

This commit is contained in:
Alex Cabal 2025-07-03 10:28:11 -05:00
parent 3763cc0783
commit b569cb3aee

View file

@ -503,7 +503,7 @@ final class Artwork{
// No duplicates found, continue.
}
if($isImageRequired){
if($isImageRequired || $imagePath !== null){
if($imagePath === null){
$error->Add(new Exceptions\InvalidImageUploadException('An image is required.'));
}