I've been trying to integrate ctools with the migrate module, so content sets can be exported to code. However the table I'm using does not have a key called 'name'. The ctools_export_load_object() still expects $object to have this name element even though I've declared the key name in the table schema. This results in two copies of the same object appearing in the UI - they're not being merged / overridden correctly.

Most of ctools_export_load_object() is correct. It is only the parts related to default objects loaded from code that still use $object->name instead of $object->{$export['key']}. The attached patch fixes the problems with object overrides that I was having.

Cheers,
Stella

CommentFileSizeAuthor
export_key_name.patch1.72 KBstella
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Needs review » Fixed

Easy commit. Thanks!!

Status: Fixed » Closed (fixed)

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