Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49199

import of fields from multi-lingual D6 site into D7 fails

$
0
0

I am cross-posting this from the CCK issue queue:
http://drupal.org/node/1063852

If using more than one language the story is the following:

  • the fields import via migrate content into D7 and display fine while viewing nodes
  • going to edit node and all the fields are blank, no values are shown here, like creating a new node
  • D7 field table rows have a column for language but instead of getting set to the proper language on import, the column is left as "und."

I understand the solution to be to add code to D7 CCK migrate content sub-module to accomplish the following three steps:

For each row (instance of a CCK field):
1) query the db and get the nid of the node to which the Drupal6 cck field is attached.
2) use that nid to query the db to get row of i18n_node (if it's a node in question) with that nid and get the value from the language column
3) write that language value to the corresponding language column in the new Drupal 7 field table

Unfortunately, I am not an experienced enough programmer to write this patch. Is there anyone here who can do it? There must be thousands of multilingual sites out there that are being prevented from upgrading to D7 because of this bug/oversight.


Viewing all articles
Browse latest Browse all 49199

Trending Articles