From f3ca8ec15b50023990d378a547535cd7b55a9bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Nadaud?= Date: Fri, 26 Jul 2013 17:23:15 +0200 Subject: [PATCH] [+] BO : Handler invoice date generation button --- controllers/admin/AdminInvoicesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminInvoicesController.php b/controllers/admin/AdminInvoicesController.php index c90344b84..57fba9bd0 100644 --- a/controllers/admin/AdminInvoicesController.php +++ b/controllers/admin/AdminInvoicesController.php @@ -213,7 +213,7 @@ class AdminInvoicesControllerCore extends AdminController public function postProcess() { - if (Tools::getValue('submitAddinvoice_date')) + if (Tools::isSubmit('submitAddinvoice_date')) { if (!Validate::isDate(Tools::getValue('date_from'))) $this->errors[] = $this->l('Invalid "From" date');