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
Comment | File | Size | Author |
---|---|---|---|
export_key_name.patch | 1.72 KB | stella | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedEasy commit. Thanks!!