From 88b962c25b4c2dd0c312c6f7e4c11f15a1263cf4 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 30 Mar 2021 18:39:32 +0200 Subject: [PATCH] Cover photo deletion was not saved properly --- wcfsetup/install/files/lib/data/style/StyleAction.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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' => '', + ]); + } } /** -- 2.20.1