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().

CommentFileSizeAuthor
#1 i18n_menu_schema_alter_1433944_1.patch950 bytesvasi1186

Comments

vasi1186’s picture

Status: Active » Needs review
StatusFileSize
new950 bytes

A small patch to fix the issue.

jose reyero’s picture

Status: Needs review » Fixed

I think it's DrupalCloneTestCase that needs fixing.

Anyway, the patch looks good and shouldn't cause any trouble, so committed.

Status: Fixed » Closed (fixed)

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