The features exported the order types in wrong format.
For example:

<?php
$items = array(
  'commerce_order_types' => array(
     'type' => 'delivery_order',
     'name' => 'Delivery',
     'help' => '',
     'module' => 'commerce_order_types',
  ),
  'commerce_order_types' => array(
     'type' => 'main_order',
     'name' => 'Main',
     'help' => '',
?>

The same array keys caused the problem in features.

Comments

pjcdawkins’s picture

Status: Active » Needs review
StatusFileSize
new684 bytes
pjcdawkins’s picture

In case the patch didn't say it, the commerce_order_type components were all getting exported as if the order bundle was commerce_order_type. It's a bug resulting from the nested foreach using the variable name $type twice.

pjcdawkins’s picture

StatusFileSize
new832 bytes
segi’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

I tested the patch with 1.0 version and dev version as well. It solved the problem.

joelpittet’s picture

Priority: Normal » Major

Yeah variable conflict.

RTBC++

  • mglaman committed 7cf136f on 7.x-1.x authored by pjcdawkins
    Issue #2353283 by pjcdawkins: Wrong type key exported for...
mglaman’s picture

Status: Reviewed & tested by the community » Fixed

Committed

Status: Fixed » Closed (fixed)

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