Version 4.7.8

This commit is contained in:
Neo committed 2025-12-19 16:10:42 -08:00
1 parent 7b7404e741
commit fd22d99e69
688 files changed
+19814 -10890

No files matched your search

+7 -1
View File
@@ -27,6 +27,7 @@ class _Poll extends FormAbstract
* @code
$defaultOptions = array(
'allowPollOnly' => TRUE, // Controls if "Allow poll only" option is allowed (if the admin has enabled it)
'itemClass' => NULL, // The content item class attached to this poll
);
* @endcode
*/
@@ -103,8 +104,13 @@ EOF;
{
$poll = new \IPS\Poll;
$poll->starter_id = \IPS\Member::loggedIn()->member_id;
if( isset( $this->options['itemClass'] ) )
{
$poll->poll_item_class = $this->options['itemClass'];
}
}
/* Set values */
$data = parent::getValue();
if ( !isset( $data['questions'] ) )