// add push

This commit is contained in:
Rémi Gaillard
2013-09-04 19:33:05 +02:00
parent 114b86ed43
commit 6e3d24b567
6 changed files with 95 additions and 6 deletions
@@ -71,16 +71,17 @@ class AdminDashboardControllerCore extends AdminController
);
return parent::renderView();
}
public function ajaxProcessRefreshDashboard()
{
$id_module = null;
if ($module = Tools::getValue('module'))
$id_module = Module::getInstanceByName($module)->id;
$params = array(
'date_from' => $this->context->employee->stats_date_from,
'date_to' => $this->context->employee->stats_date_to,
'use_push' => (int)Tools::getValue('use_push')
);
die(Tools::jsonEncode(Hook::exec('dashboardData', $params, $id_module, true)));