Imported forums structure may be broken as the sort order of forums is not 100% correct in some circumstances. Adding ->orderBy('forum_type') makes sure the main categories come first.

diff -crB ./drupal/sites/all/modules/phpbb2drupal_old/phpbb2drupal_core.inc ./drupal/sites/all/modules/phpbb2drupal/phpbb2drupal_core.inc
*** ./drupal/sites/all/modules/phpbb2drupal_old/phpbb2drupal_core.inc	2012-02-17 00:53:28.000000000 +0000
--- ./drupal/sites/all/modules/phpbb2drupal/phpbb2drupal_core.inc	2012-02-17 00:54:30.000000000 +0000
***************
*** 224,229 ****
--- 224,230 ----
        ->select('{forums}', 'f')
        ->fields('f', array('forum_id', 'parent_id', 'forum_name', 'forum_desc', 'forum_type'))
        ->condition('forum_type', 2, '<>')
+       ->orderBy('forum_type')
        ->orderBy('parent_id')
        ->orderBy('right_id')
        ->orderBy('left_id')

Comments

darksnow’s picture

I've added this to my local copy of the code and while it doesn't have any adverse effect, it also doesn't seem to do anything.

A sort order is required to the "high water mark" feature of migrate so this is all good, but I was wondering if you could elaborate a little on what problem you are seeing.

Cheers.

JeremyFrench’s picture

Status: Active » Closed (cannot reproduce)

I think this issue is fixed in the more recent versions of the module. Please reopen if this is still an issue for you.