ezsystems/ezpublish — pull request #362 by lolautruche (2012-07-04 15:52:34+00:00)
Title: Language attribute filter issue

Relates to [#19190](http://issues/19190) and [#19512](http://issues.ez.no/19512).

2 separate commits. The first one to fix the regression mentioned in [#19512](http://issues.ez.no/19512). The second one fixes [#19190](http://issues/19190). The problem was that the `Language` parameter was not taken into account in attribute filter SQL string generation.

Manual tests with following script:

```php
'fre-FR',
'AttributeFilter' => array( array( 'folder/name', '!=', '' ) )
);
$nodeId = 95; // Under this node, 2 content objects: one in eng-GB only, the other one in fre-FR

$nodes = eZContentObjectTreeNode::subTreeByNodeID( $params, $nodeId );
$count = eZContentObjectTreeNode::subTreeCountByNodeID( $params, $nodeId );

echo "SubTreeCount: $count\n";
echo "Fetch count: ", count( $nodes ), "\n";
foreach ( $nodes as $node )
{
echo $node->attribute( 'name' ), "\n";
}

```

Expected result is to have `fre-FR` object