Skip to content

Commit

Permalink
Fix EZP-22118: Valid nodes must take translation into account.
Browse files Browse the repository at this point in the history
(cherry picked from commit 602cd88)
  • Loading branch information
yannickroger committed Jan 3, 2014
1 parent 7176d5f commit 52ed265
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -88,12 +88,14 @@ static function validNodes( $blockID, $asObject = true )
}

$db = eZDB::instance();
$validNodes = $db->arrayQuery( "SELECT *
FROM ezm_pool, ezcontentobject_tree
$validNodes = $db->arrayQuery( "SELECT ezm_pool.node_id
FROM ezm_pool, ezcontentobject_tree, ezcontentobject
WHERE ezm_pool.block_id='$blockID'
AND ezm_pool.ts_visible>0
AND ezm_pool.ts_hidden=0
AND ezcontentobject_tree.node_id = ezm_pool.node_id
AND ezcontentobject.id = ezm_pool.object_id
AND " . eZContentLanguage::languagesSQLFilter( 'ezcontentobject' ) . "
$visibilitySQL
ORDER BY ezm_pool.priority DESC" );

Expand Down

0 comments on commit 52ed265

Please sign in to comment.