// Fix #PSFV-30 + context part 24

This commit is contained in:
rMalie
2011-07-28 14:12:17 +00:00
parent 88df490244
commit b59d2200f6
22 changed files with 47 additions and 55 deletions
+2 -2
View File
@@ -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.')' : '');