Fix database and file system getting out of sync for pageLogo in style
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 14 Dec 2021 09:10:20 +0000 (10:10 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 14 Dec 2021 09:10:20 +0000 (10:10 +0100)
commit3ecc36227cd0d7325b12e39b6a8a3625cdd542b4
treee06ff15fcd56387610af1b12cc76fd05892eb7b3
parent6da12db6a10e89c70985146fc0edf7eb5dd78b29
Fix database and file system getting out of sync for pageLogo in style

This can happen if the style editor is opened in two tabs and no logo is
configured yet. In Tab (A) an logo is uploaded and then Tab (B) is submitted.
Tab (B) will not provided the `pageLogo` key in the `uploads` parameter,
because nothing in this field was changed. Thus the processing for the logo
does not run. However all style variables are cleared upon an edit, thus
clearing the database reference.

Closes #4606
wcfsetup/install/files/lib/data/style/StyleAction.class.php