I need help overcoming a bug in D7 CCK migrate fields, which fails to set the language which makes the field data not show up on edit screens of multilingual sites.
I'm not knowledgeable enough to patch the module and so far no one in the issue queue has helped. Maybe I have almost written a query that could be run directly in phpmyadmin though. Can anyone help me correct this syntax (assuming you can run if/then statements directly in mysql queries)? There must be a LOT of multiilingual sites that cannot upgrade to d7 without this:
select nid, language from i18n_node;
if (i18n_node language = 'ja')
then
update field_data_field_myfield = replace(language, 'und','ja') where field_data_field_myfield nid = i18n_node nid