Ower Barton discovered an interesting bug when ctools is used to provided exportables for wysiwyg:

See: #624018-81: Exportables and Features support for WYSIWYG 7.x

As far as I can tell it is not joining to the exportables table at all, and hence is not picking up the machine name for the input format, causing the array items to have no key and them clobbering each other.

I did some research, and the problems seems to be related to a check in ctools_export_get_schema() to ensure that that schema contains an 'export' array inside.

Well, this is required for based tables, due exportables uses that info to create exportables, but this is not so true for joined tables. After all, joined tables are used as a complement of the base table.

The attached patch allows to skip this check if the table is used as a join of another one.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dagmar’s picture

Status: Needs review » Needs work

Please do not commit this yet. It does work well with features.

dagmar’s picture

Status: Needs work » Needs review
FileSize
874 bytes

Ok, here is:

We use drupal_get_schema() instead of ctools_export_get_schema() to return a schema even if 'export' is not present on the joinned schema.

merlinofchaos’s picture

Status: Needs review » Fixed

And committed.

Status: Fixed » Closed (fixed)

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