Skip to:
Content

bbPress.org

Changeset 5568


Ignore:
Timestamp:
11/22/2014 04:26:02 AM (11 years ago)
Author:
netweb
Message:

Xenforo 1.x importer: Fix regression introduced in r5349 where topics were imported a second time as part of the reply section import.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/XenForo.php

    r5530 r5568  
    323323            'to_type'        => 'reply',
    324324            'to_fieldname'   => '_bbp_old_reply_id'
     325        );
     326
     327        // Join the 'thread' table to exclude topics from being imported as replies
     328        $this->field_map[] = array(
     329            'from_tablename'  => 'thread',
     330            'from_fieldname'  => 'thread_id',
     331            'join_tablename'  => 'post',
     332            'join_type'       => 'LEFT',
     333            'join_expression' => 'USING (thread_id) WHERE thread.first_post_id != post.post_id',
     334            'to_type'         => 'reply'
    325335        );
    326336
Note: See TracChangeset for help on using the changeset viewer.