[-] WS: Fix stockavailables list when stock is shared between shops #PSCFV-10793
This commit is contained in:
@@ -1139,7 +1139,7 @@ abstract class ObjectModelCore
|
|||||||
{
|
{
|
||||||
$vars = get_class_vars($class_name);
|
$vars = get_class_vars($class_name);
|
||||||
foreach ($vars['shopIDs'] as $id_shop)
|
foreach ($vars['shopIDs'] as $id_shop)
|
||||||
$or[] = ' main.id_shop = '.(int)$id_shop.' ';
|
$or[] = '(main.id_shop = '.(int)$id_shop.(isset($this->def['fields']['id_shop_group']) ? ' OR (id_shop = 0 AND id_shop_group='.(int)Shop::getGroupFromShop((int)$id_shop).')' : '').')';
|
||||||
|
|
||||||
$prepend = '';
|
$prepend = '';
|
||||||
if (count($or))
|
if (count($or))
|
||||||
|
|||||||
Reference in New Issue
Block a user