Posted by miaoulafrite on January 18, 2013 at 11:50am
3 followers
Jump to:
| Project: | Metatag |
| Version: | 7.x-1.0-beta4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
I have a multilingual content-type, and i'm using i18n_sync to synchronise some fields. I have 2 languages enabled, FR and EN
Whe, i create/edit the FR node and manually set the metatags, they are correctly displayed. If i do the same on the EN version of the node, the EN metatags are correctly displayed but the FR metatags are using the default config.
I applyed the patch from here : http://drupal.org/node/1845326#comment-6933406 but it doesn't fix the problem.
Here is the process :
I have created a FR node, and metatags are an attribute of the entity, with the following array :
<?php
public 'metatags' =>
array (size=1)
'fr' =>
array (size=2)
'title' =>
array (size=1)
'value' => string 'title fr' (length=8)
'description' =>
array (size=1)
'value' => string 'desc fr' (length=7)
?>Then i translated this node to EN and saved it, and i got the following result :
On the EN node :
<?php
public 'metatags' =>
array (size=1)
'en' =>
array (size=2)
'title' =>
array (size=1)
'value' => string 'title EN' (length=8)
'description' =>
array (size=1)
'value' => string 'desc EN' (length=7)
?>On the FR node :
<?php
public 'metatags' =>
array (size=1)
'fr' =>
array (size=1)
'fr' =>
array (size=2)
'title' =>
array (size=1)
'value' => string 'title fr' (length=8)
'description' =>
array (size=1)
'value' => string 'desc fr' (length=7)
?>Every time a node is saved in a language with i18n_sync enabled, the metatags of the translated nodes are put in another array with the langcode as key, so they aren't correctly displayed and the default config is used.
Comments
#1
This is a duplicate of #1871020: Conflict with Workbench Moderation: tags revert to defaults after moderation change, which has been fixed. Please update to the latest -dev release, beta5 will probably be out tomorrow.