Skip to content

Commit

Permalink
[*] BO : Fix date range issue for Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbourdeau committed Oct 24, 2014
1 parent 7d9229e commit 961db73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions controllers/admin/AdminDashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,12 @@ public function postProcess()
if (Tools::isSubmit('submitDateRange'))
{
if (!Validate::isDate(Tools::getValue('date_from'))
|| !Validate::isDate(Tools::getValue('date_to'))
|| !Validate::isDate(Tools::getValue('preselectDateRange')));
|| !Validate::isDate(Tools::getValue('date_to')))
$this->errors[] = Tools::displayError('The selected date range is not valid.');

if (Tools::getValue('datepicker_compare'))
if (!Validate::isDate(Tools::getValue('compare_date_from'))
|| !Validate::isDate(Tools::getValue('compare_date_to')));
|| !Validate::isDate(Tools::getValue('compare_date_to')))
$this->errors[] = Tools::displayError('The selected date range is not valid.');

if (!count($this->errors))
Expand Down

0 comments on commit 961db73

Please sign in to comment.