IPS Poll discrepancies.

Status
This content is read-only, or is not open for further replies.

Slavik

Guest
offline
On poll imports from IPS we decode the "choices" field from the poll table.

The importer checks the decoded data for the question entry and sets that accordingly:

Code:

Code:
$questions = json_decode($poll['choices'], true);

            $question = $stepConfig['which_question'] == 'newest'
                ? end($questions)
                : reset($questions);


 /** @var \XF\Import\Data\Poll $import */
            $import = $this->newHandler('XF:Poll')...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom