From dec1555b3245f0463818274fa5462d0a4404cce1 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 25 Nov 2013 11:30:12 +0100 Subject: [PATCH] // Fixed dashboard simulation mode switch --- .../template/controllers/dashboard/helpers/view/view.tpl | 4 ++-- controllers/admin/AdminDashboardController.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/dashboard/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/dashboard/helpers/view/view.tpl index 90ab4b49f..24a7c7986 100644 --- a/admin-dev/themes/default/template/controllers/dashboard/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/dashboard/helpers/view/view.tpl @@ -132,11 +132,11 @@

{l s="Simulation Mode"}

- + - + diff --git a/controllers/admin/AdminDashboardController.php b/controllers/admin/AdminDashboardController.php index 47fa4106f..015e417af 100644 --- a/controllers/admin/AdminDashboardController.php +++ b/controllers/admin/AdminDashboardController.php @@ -236,6 +236,7 @@ class AdminDashboardControllerCore extends AdminController 'new_version_url' => Tools::getCurrentUrlProtocolPrefix().'api.prestashop.com/version/check_version.php?v='._PS_VERSION_.'&lang='.$this->context->language->iso_code, 'dashboard_use_push' => Configuration::get('PS_DASHBOARD_USE_PUSH'), 'calendar' => $calendar_helper->generate(), + 'PS_DASHBOARD_SIMULATION' => Configuration::get('PS_DASHBOARD_SIMULATION'), 'datepickerFrom' => Tools::getValue('datepickerFrom', $this->context->employee->stats_date_from), 'datepickerTo' => Tools::getValue('datepickerTo', $this->context->employee->stats_date_to) );