// Fixed stats bug (bad id for ajax request)

This commit is contained in:
Damien Metzger committed 2013-10-09 10:05:24 +02:00
1 parent 8c9dffd854
commit 38143e1245
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -504,7 +504,7 @@ class AdminStatsControllerCore extends AdminStatsTabController
else else
{ {
$country = new Country($row['id_country'], $this->context->language->id); $country = new Country($row['id_country'], $this->context->language->id);
$value = sprintf($this->l('%.1f%% %s'), $row['orders'], $country->name); $value = sprintf($this->l('%d%% %s'), $row['orders'], $country->name);
} }
ConfigurationKPI::updateValue('MAIN_COUNTRY', array($this->context->language->id => $value)); ConfigurationKPI::updateValue('MAIN_COUNTRY', array($this->context->language->id => $value));
@@ -1272,7 +1272,7 @@ class AdminTranslationsControllerCore extends AdminController
$kpis[] = $helper->generate(); $kpis[] = $helper->generate();
$helper = new HelperKpi(); $helper = new HelperKpi();
$helper->id = 'box-country'; $helper->id = 'box-translations';
$helper->icon = 'icon-list'; $helper->icon = 'icon-list';
$helper->color = 'color3'; $helper->color = 'color3';
$helper->title = $this->l('Front Office Translations'); $helper->title = $this->l('Front Office Translations');