Skip to:
Content

bbPress.org

Changeset 5160


Ignore:
Timestamp:
11/21/2013 11:43:54 PM (8 years ago)
Author:
netweb
Message:

Improved SQL join expression for topics 'post_content' in Mingle.php importer. Props netweb. Fixes #2472

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/converters/Mingle.php

    r4824 r5160  
    132132            'join_tablename'  => 'forum_threads',
    133133            'join_type'       => 'INNER',
    134             'join_expression' => 'USING (subject)',
     134            'join_expression' => 'ON forum_posts.parent_id = forum_threads.id GROUP BY forum_threads.id',
    135135            'to_type'         => 'topic',
    136136            'to_fieldname'    => 'post_content',
     
    245245        $this->field_map[] = array(
    246246            'from_tablename'  => 'forum_posts',
    247             'from_fieldname'  => 'id',
     247            'from_fieldname'  => 'parent_id',
    248248            'to_type'         => 'reply',
    249249            'to_fieldname'    => '_bbp_topic_id',
     
    422422
    423423    /**
    424      * Translate the post status from Mingle numeric's to WordPress's strings.
     424     * Translate the topic status from Mingle numeric's to WordPress's strings.
    425425     *
    426426     * @param int $status Mingle v1.x numeric topic status
Note: See TracChangeset for help on using the changeset viewer.