#1892 closed defect (fixed)
Invision Importer Replies Broken
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1.1 |
| Component: | Importers | Version: | 2.1 |
| Severity: | normal | 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)
- Cc stephen@… added
- Keywords has-patch added
- Milestone changed from Awaiting Review to 2.1.1
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
(In [4085]) Converter: