1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Poll votes import

Discussion in 'Resolved Bug Reports' started by g0rn, Oct 11, 2010.

  1. g0rn

    g0rn Well-Known Member

    Poll votes are not imported correctly. XenForo_Model_Imprort -> importThreadPoll returns $responseIds array, and first element of that array has an index equal to 0, not 1.
    However in XenForo_Importer_vBulletin -> stepPolls voteoption ids are used as keys in this array ($responseIds[$vote['voteoption']]), but these ids start from 1, not 0. So results become shifted one option upwards.
    CyberAP likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    I actually have some data with voteoptions of 0, which is weird. But I'm just testing this fix. Thanks :)
  3. jacko

    jacko Active Member

    I confirm this bug. I got my poll results shifted after importing. Is it fixed in Beta 2?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Mike has prefixed the thread title with [Fixed] and moved the thread to the Resolved Bug Reports forum.
    He only ever does this once he has fixed the issue so it's safe to assume it will be incorporated in Beta 2.
    CyberAP and jacko like this.
  5. jacko

    jacko Active Member

    thank you for clarifying this

Share This Page