Skip to content

Commit 63d8ecd

Browse files
committed
Skip the check for isPublic when the option is unavailable
See https://www.woltlab.com/community/thread/314695/
1 parent 1fea210 commit 63d8ecd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ function (IFormDocument $document, array $parameters) use ($id) {
298298
$wysiwygId = $this->getWysiwygId();
299299

300300
foreach (self::FIELD_NAMES as $fieldName) {
301+
if ($fieldName === 'isPublic' && !$this->getIsPublicField()->isAvailable()) {
302+
continue;
303+
}
304+
301305
$parameters[$wysiwygId . '_pollData'][$fieldName] = $parameters['data'][$id . \ucfirst($fieldName)];
302306
unset($parameters['data'][$id . \ucfirst($fieldName)]);
303307
}

0 commit comments

Comments
 (0)