While doing some tests for another bug report I encountered this issue.

Choosing the "Don't create menu items; Just create nodes." radio button, then selecting my custom content type from the drop down I imported my nodes. However they were imported as "Page" type not my chosen custom content type. Assuming I had made an error I repeated the process three times and conclude that when selecting "Don't create menu items; Just create nodes." this error occurs.

This was not the case when selecting the first option, "Create new menu items under an existing menu item."

Comments

redpuma’s picture

now it also appears to be the case with the first option too.

joachim’s picture

This will happen in all cases, independently of menu options.

The problem is that the setup form lets you pick a default type, but nowhere else in the code is the import_type value used!

I'm not sure how to fix, as by the time we get here:

  if (empty($input['type'])) {
    $node->type = 'page';
  }

we don't have the form values.

You can always hardcode your chosen type here for the time being :)

usonian’s picture

Assigned: Unassigned » usonian
Status: Active » Fixed

Good catch, thanks. this should be fixed in the D6 branch now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.