Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.6, 4.1.3, 4.2.0alpha1
-
None
Description
Here is some multilanguage issue with a tree fetch
$node_id = 2; $treeParameters = array( 'OnlyTranslated' => true, 'Language' => 'ger-DE', 'IgnoreVisibility' => true, 'MainNodeOnly' => true ); eZContentObjectTreeNode::subTreeByNodeID( $treeParameters, $node_id );
The following code delivers no result if the following is true:
consider we use a couple of languages...
node 2 is only translated into eng-GB
node 2 has many children in ger-DE
Now I want all children of node 2 but is doesn`t work... I get an empty result... if I add the translation 'ger-DE' to node 2 it will all work fine.
the problematic failure happens in function
createPathConditionAndNotEqParentSQLStrings
when
$node = eZContentObjectTreeNode::fetch( $nodeID, false, false ); is called.
The problem is the earlier call to eZContentLanguage::setPrioritizedLanguages( $language ); in subTreeByNodeID
Patch attached.