diff --git a/adm/tabs/AdminInvoices.php b/adm/tabs/AdminInvoices.php
index 8a33345c..f1ce63d7 100755
--- a/adm/tabs/AdminInvoices.php
+++ b/adm/tabs/AdminInvoices.php
@@ -113,7 +113,7 @@ class AdminInvoices extends AdminTab
'. $this->l('Delay') .' |
';
// M2\' |
- $id_sales = unserialize(Configuration::get("ANT_CHECKED_SALE_".$cookie->id_employee));
+ $id_sales = unserialize(Configuration::get("ANT_CHECKED_SALES"));
foreach ($this->print_sales as $key => $sale) {
if( $key%2 == 0) {
$class = 'alt_row';
@@ -354,8 +354,7 @@ class AdminInvoices extends AdminTab
public function ajaxProcessResetPrintM2Plus()
{
- global $cookie;
- Configuration::updateValue("ANT_CHECKED_SALE_".$cookie->id_employee, '');
+ Configuration::updateValue("ANT_CHECKED_SALES", '');
}
public function display()
@@ -366,7 +365,7 @@ class AdminInvoices extends AdminTab
public function postProcess()
{
- global $currentIndex, $cookie;
+ global $currentIndex;
if (Tools::isSubmit('submitPrint'))
{
@@ -501,7 +500,7 @@ class AdminInvoices extends AdminTab
include_once(dirname(__FILE__).'/../../modules/privatesales/Sale.php');
$id_sales = Tools::getValue('multi2');
- Configuration::updateValue("ANT_CHECKED_SALE_".$cookie->id_employee, serialize($id_sales));
+ Configuration::updateValue("ANT_CHECKED_SALES", serialize($id_sales));
if (empty($id_sales) || (count($id_sales) < 2) ) {
$this->_errors[] = $this->l('You must select 2 sales minimum for print M2+');