// Fix currencies for multishop + meta
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8209 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -216,7 +216,7 @@ class AdminMeta extends AdminTab
|
|||||||
|
|
||||||
public function getList($id_lang, $orderBy = NULL, $orderWay = NULL, $start = 0, $limit = NULL, $id_lang_shop = false)
|
public function getList($id_lang, $orderBy = NULL, $orderWay = NULL, $start = 0, $limit = NULL, $id_lang_shop = false)
|
||||||
{
|
{
|
||||||
parent::getList($id_lang, $orderBy, $orderWay, $start, $limit, Context::getContext()->shop->getID());
|
parent::getList($id_lang, $orderBy, $orderWay, $start, $limit, Context::getContext()->shop->getID(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ class CurrencyCore extends ObjectModel
|
|||||||
|
|
||||||
$sql = 'SELECT *
|
$sql = 'SELECT *
|
||||||
FROM `'._DB_PREFIX_.'currency` c
|
FROM `'._DB_PREFIX_.'currency` c
|
||||||
'.$shop->sqlAsso('currency', 'c', false).'
|
'.$shop->sqlAsso('currency', 'c').'
|
||||||
WHERE `deleted` = 0'
|
WHERE `deleted` = 0'
|
||||||
.($active == 1 ? ' AND c.`active` = 1' : '').'
|
.($active == 1 ? ' AND c.`active` = 1' : '').'
|
||||||
ORDER BY `name` ASC';
|
ORDER BY `name` ASC';
|
||||||
|
|||||||
Reference in New Issue
Block a user