Fix reading medias' `captionEnableHtml`
authorMatthias Schmidt <gravatronics@live.com>
Wed, 28 Oct 2020 13:01:48 +0000 (14:01 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 28 Oct 2020 13:01:48 +0000 (14:01 +0100)
See a1b75f8b9b9d6137434945bb8bea9518eddb48d3

wcfsetup/install/files/lib/data/media/MediaAction.class.php

index 03123c9b54a1270fbf6add311ff5ecf1323bf715..4539005e6fa238479bfffb8f3867196cbaf24d6b 100644 (file)
@@ -354,7 +354,7 @@ class MediaAction extends AbstractDatabaseObjectAction implements ISearchAction,
                $this->readInteger('categoryID', true, 'data');
                $this->readInteger('languageID', true, 'data');
                $this->readBoolean('isMultilingual', true, 'data');
-               $this->readBoolean('captionEnableHtml', true, 'data');
+               $this->readInteger('captionEnableHtml', true, 'data');
                
                if (count(LanguageFactory::getInstance()->getLanguages()) > 1) {
                        // languageID: convert zero to null