Skip to:
Content

bbPress.org

Ticket #2472: 2472.diff

File 2472.diff, 1023 bytes (added by netweb, 12 years ago)
  • bbPress/admin/converters/Mingle.php

    diff --git a/bbPress/admin/converters/Mingle.php b/bbPress/admin/converters/Mingle.php
    index c7f6828..2439596 100644
    a b class Mingle extends BBP_Converter_Base { 
    131131                        'from_fieldname'  => 'text',
    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',
    137137                        'callback_method' => 'callback_html'
    class Mingle extends BBP_Converter_Base { 
    244244                // Reply parent topic id (If no parent, then 0. Stored in postmeta)
    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',
    250250                        'callback_method' => 'callback_topicid'