#1892 closed defect (bug) (fixed)
Invision Importer Replies Broken
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.1.1 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | API - Importers | Keywords: | has-patch |
Cc: | stephen@… |
Description
Just tried to use the importer to convert invision board data. Right now it fails to convert any of the replies (well actually it only converts the topic as a reply, thus duplicating the topic). This is due to it looking for a new topic in the posts table versus just the replies.
To fix change line 165 in Invision.php from:
$this->field_map[] = array( 'from_tablename' => 'posts', 'from_fieldname' => 'pid', 'from_expression' => 'WHERE posts.new_topic = 1', 'to_type' => 'reply', 'to_fieldname' => '_bbp_post_id' );
to:
$this->field_map[] = array( 'from_tablename' => 'posts', 'from_fieldname' => 'pid', 'from_expression' => 'WHERE posts.new_topic = 0', 'to_type' => 'reply', 'to_fieldname' => '_bbp_post_id' );
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
(In [4085]) Converter: