Merge branch 'ticket-simplemulti_invoice' into develop

This commit is contained in:
Marion Muszynski 2016-06-28 15:46:05 +02:00
commit 9fb4d1786c

View File

@ -468,6 +468,11 @@ class AdminInvoices extends AdminTab
include_once(dirname(__FILE__).'/../../modules/privatesales/Sale.php');
$id_sales = Tools::getValue('multi2');
foreach ($_COOKIE as $name => $value) {
if (preg_match('/^checked_sale_/', $name)) {
setcookie($name, "", time() - 3600);
}
}
// Save Sales as checked
foreach ($id_sales as $id) {
setcookie('checked_sale_'.(int)$id, (int)$id, time()+(60*60*24*360));