From: Marcel Werk Date: Tue, 30 Mar 2021 16:39:32 +0000 (+0200) Subject: Cover photo deletion was not saved properly X-Git-Tag: 5.3.6~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88b962c25b4c2dd0c312c6f7e4c11f15a1263cf4;p=GitHub%2FWoltLab%2FWCF.git Cover photo deletion was not saved properly --- diff --git a/wcfsetup/install/files/lib/data/style/StyleAction.class.php b/wcfsetup/install/files/lib/data/style/StyleAction.class.php index 820bd5f2ad..e7801c92c6 100644 --- a/wcfsetup/install/files/lib/data/style/StyleAction.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleAction.class.php @@ -453,6 +453,11 @@ BROWSERCONFIG; ]); } } + else if ($style->coverPhotoExtension) { + (new StyleEditor($style))->update([ + 'coverPhotoExtension' => '', + ]); + } } /**