Closed (fixed)
Project:
Flickr Sync
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2011 at 18:18 UTC
Updated:
13 Dec 2011 at 00:27 UTC
Flickr Sync is not setting the language value for nodes as "und" and this causes it to have issues with creating URL aliases.
Thanks to micahwalter for reporting this issue.
Comments
Comment #1
gclicon commentedI have committed an update to set the node language to LANGUAGE_NONE. The update should show up in the dev package once the package is updated.
Comment #2
minnur commentedHi German,
I would recommend you to use different construction with $node->file["und"]'s, $node object has the following:
$node->language = 'und'; - when the language is undefined. To support other languages I would recommend to use something like this:
if (isset($node->field_name[$node->language])) {
print $node->field_name[$node->language][0]['value'];
}
else {
print $node->field_name[LANGUAGE_NONE][0]['value'];
}