Fix making `isPublic` poll field unavailable during edits
authorMatthias Schmidt <gravatronics@live.com>
Sun, 28 Apr 2019 11:47:12 +0000 (13:47 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 28 Apr 2019 11:47:12 +0000 (13:47 +0200)
See #2852

wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygPollFormContainer.class.php

index b1695cd3abe79e8d1213aa5df05794c21744d76c..4e56278f56631b691d0ffc2187ed58248914e146 100644 (file)
@@ -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);