// Fix #PSFV-30 + context part 24
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7792 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -51,12 +51,12 @@ class StatsStock extends Module
|
||||
|
||||
function hookAdminStatsModules()
|
||||
{
|
||||
global $cookie, $currentIndex;
|
||||
global $cookie;
|
||||
|
||||
if (Tools::isSubmit('submitCategory'))
|
||||
$cookie->statsstock_id_category = Tools::getValue('statsstock_id_category');
|
||||
|
||||
$ru = $currentIndex.'&module='.$this->name.'&token='.Tools::getValue('token');
|
||||
$ru = AdminTab::$currentIndex.'&module='.$this->name.'&token='.Tools::getValue('token');
|
||||
$currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
|
||||
$filter = ((int)$cookie->statsstock_id_category ? ' AND p.id_product IN (SELECT cp.id_product FROM '._DB_PREFIX_.'category_product cp WHERE cp.id_category = '.(int)$cookie->statsstock_id_category.')' : '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user