From d3d94025998a717e3eb50123729153eee1f830a5 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 28 Apr 2019 13:47:12 +0200 Subject: [PATCH] Fix making `isPublic` poll field unavailable during edits See #2852 --- .../container/wysiwyg/WysiwygPollFormContainer.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygPollFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygPollFormContainer.class.php index b1695cd3ab..4e56278f56 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygPollFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygPollFormContainer.class.php @@ -234,7 +234,7 @@ class WysiwygPollFormContainer extends FormContainer implements IObjectTypeFormN } else { // `isPublic` cannot be changed when editing polls - $this->getIsPublicField()->isAvailable(false); + $this->getIsPublicField()->available(false); } $this->getQuestionField()->value($this->poll->question); -- 2.20.1