From 54b882e936b304b5d3b8ee8a110943417e93ce5c Mon Sep 17 00:00:00 2001 From: Piotr Kaczor Date: Fri, 5 Jul 2013 08:05:51 +0200 Subject: [PATCH] [*] MO : pscleaner reset employees notyfications pscleaner afetr truncating orders, messages and customers reset also employees notyfications --- modules/pscleaner/pscleaner.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/pscleaner/pscleaner.php b/modules/pscleaner/pscleaner.php index ceca17d02..35e6f62de 100644 --- a/modules/pscleaner/pscleaner.php +++ b/modules/pscleaner/pscleaner.php @@ -487,6 +487,8 @@ class PSCleaner extends Module foreach ($tables as $table) $db->execute('TRUNCATE TABLE `'._DB_PREFIX_.bqSQL($table).'`'); $db->execute('DELETE FROM `'._DB_PREFIX_.'address` WHERE id_customer > 0'); + $db->execute('UPDATE `'._DB_PREFIX_.'employee` SET `id_last_order` = 0,`id_last_customer_message` = 0,`id_last_customer` = 0'); + break; } $this->clearAllCaches();