diff --git a/plugins/cck_storage_location/joomla_article/joomla_article.php b/plugins/cck_storage_location/joomla_article/joomla_article.php index 2ec9a11c8..35cd0a43a 100644 --- a/plugins/cck_storage_location/joomla_article/joomla_article.php +++ b/plugins/cck_storage_location/joomla_article/joomla_article.php @@ -930,7 +930,7 @@ public static function parseRoute( &$vars, &$segments, $n, $config ) // Retrieve Content Type(s) if ( isset( $config['sef_types'] ) && $config['sef_types'] != '' ) { if ( $config['doSEF'][0] != '3' ) { - $join .= ' LEFT JOIN #__cck_core AS e on e.'.$config['join_key'].' = a.id'; + $join .= ' LEFT JOIN #__cck_core AS e on e.'.$config['join_key'].' = b.id'; $where .= ( strpos( $config['sef_types'], ',' ) !== false ) ? ' AND e.cck IN ("'.str_replace( ',', '","', $config['sef_types'] ).'")' : ' AND e.cck = "'.$config['sef_types'].'"'; } } @@ -1085,4 +1085,4 @@ public static function authorise( $rule, $pk ) return JFactory::getUser()->authorise( $rule, 'com_content.article.'.$pk ); } } -?> \ No newline at end of file +?>