[+] BO : in order tab you have new information of new customer message

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17158 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-09-04 08:24:39 +00:00
parent e5b0d70057
commit 27014976fa
4 changed files with 35 additions and 3 deletions
@@ -653,6 +653,12 @@ class AdminCustomerThreadsControllerCore extends AdminController
if (!$this->errors && $value)
Configuration::updateValue('PS_SAV_IMAP_OPT', implode('', $value));
}
}
public function ajaxProcessMarkAsRead()
{
$id_thread = Tools::getValue('id_thread');
$messages = CustomerThread::getMessageCustomerThreads($id_thread);
if (count($messages))
Db::getInstance()->execute('UPDATE '._DB_PREFIX_.'customer_message set `read` = 1');
}
}