From f9322d9b2064182c4a8f134df8dd02048695baea Mon Sep 17 00:00:00 2001 From: "Ilya A. Zhulin" Date: Fri, 17 Mar 2023 19:05:01 +0300 Subject: [PATCH] Join is not correct As I see you try join `#__content as a` to `#__cck_core as e` with value `e.cck='category'` - value for joomla_category object. Maybe it would be more clean in this topic [https://www.seblod.com/community/forums/forms-content-types/replay-native-joomla-structure] --- .../cck_storage_location/joomla_article/joomla_article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +?>