Hi,
I recently had a problem with a site when using the DrupalCloneTestCase from the Simpletest contrib module (http://drupal.org/project/simpletest) in combination with i18n_menu. The problem is that in i18n_menu_schema_alter() the "language" field is defined after the "i18n_mode" field in the menu_custom table, but in the install hook it is created before the "i18n_mode" field. When using the DrupalCloneTestCase, I end up in having in the original database the order of fields for the menu_custom table: menu_name, title, description, language, i18_mode, but in the simpletest table: menu_name, title, description, i18n_mode, language. And when the setup method tries to duplicate the data from one table to the other, it crashes. I solved that just by changing the order of the fields in hook_schema_alter().
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | i18n_menu_schema_alter_1433944_1.patch | 950 bytes | vasi1186 |
Comments
Comment #1
vasi1186 commentedA small patch to fix the issue.
Comment #2
jose reyero commentedI think it's DrupalCloneTestCase that needs fixing.
Anyway, the patch looks good and shouldn't cause any trouble, so committed.