// Change RIGHT to LEFT join in shop association
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13543 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -792,7 +792,7 @@ class ShopCore extends ObjectModel
|
|||||||
if (!isset($asso_tables[$table]) || $asso_tables[$table]['type'] != 'shop')
|
if (!isset($asso_tables[$table]) || $asso_tables[$table]['type'] != 'shop')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$sql = (($inner_join) ? ' INNER' : ' RIGHT').' JOIN '._DB_PREFIX_.$table.'_shop '.$table_alias.'
|
$sql = (($inner_join) ? ' INNER' : ' LEFT').' JOIN '._DB_PREFIX_.$table.'_shop '.$table_alias.'
|
||||||
ON '.$table_alias.'.id_'.$table.' = '.$alias.'.id_'.$table.'
|
ON '.$table_alias.'.id_'.$table.' = '.$alias.'.id_'.$table.'
|
||||||
AND '.$table_alias.'.id_shop IN('.implode(', ', $this->getListOfID()).') ';
|
AND '.$table_alias.'.id_shop IN('.implode(', ', $this->getListOfID()).') ';
|
||||||
return $sql;
|
return $sql;
|
||||||
|
|||||||
Reference in New Issue
Block a user