@@ -257,6 +257,7 @@ public function getConfigurationArray(): array {
257257 'allowProposals ' => $ this ->getAllowProposals (),
258258 'anonymous ' => boolval ($ this ->getAnonymous ()),
259259 'autoReminder ' => $ this ->getAutoReminder (),
260+ 'collapseDescription ' => $ this ->getCollapseDescription (),
260261 'description ' => $ this ->getDescription (),
261262 'expire ' => $ this ->getExpire (),
262263 'hideBookedUp ' => boolval ($ this ->getHideBookedUp ()),
@@ -322,6 +323,7 @@ public function deserializeArray(array $pollConfiguration): self {
322323 $ this ->setAllowProposals ($ pollConfiguration ['allowProposals ' ] ?? $ this ->getAllowProposals ());
323324 $ this ->setAnonymousSafe ($ pollConfiguration ['anonymous ' ] ?? $ this ->getAnonymous ());
324325 $ this ->setAutoReminder ($ pollConfiguration ['autoReminder ' ] ?? $ this ->getAutoReminder ());
326+ $ this ->setCollapseDescription ($ pollConfiguration ['collapseDescription ' ] ?? $ this ->getCollapseDescription ());
325327 $ this ->setExpire ($ pollConfiguration ['expire ' ] ?? $ this ->getExpire ());
326328 $ this ->setHideBookedUp ($ pollConfiguration ['hideBookedUp ' ] ?? $ this ->getHideBookedUp ());
327329 $ this ->setProposalsExpire ($ pollConfiguration ['proposalsExpire ' ] ?? $ this ->getProposalsExpire ());
@@ -389,10 +391,18 @@ private function setAutoReminder(bool|int $value): void {
389391 $ this ->setMiscSettingsByKey ('autoReminder ' , (bool )$ value );
390392 }
391393
394+ private function setCollapseDescription (bool |int $ value ): void {
395+ $ this ->setMiscSettingsByKey ('collapseDescription ' , (bool )$ value );
396+ }
397+
392398 private function getAutoReminder (): bool {
393399 return $ this ->getMiscSettingsArray ()['autoReminder ' ] ?? false ;
394400 }
395401
402+ private function getCollapseDescription (): bool {
403+ return $ this ->getMiscSettingsArray ()['collapseDescription ' ] ?? true ;
404+ }
405+
396406 // alias of getId()
397407 public function getPollId (): int {
398408 return $ this ->getId ();
0 commit comments