[+] Add handling for notifications in BO
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8247 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -688,3 +688,15 @@ if (Tools::isSubmit('updateProductImageShopAsso'))
|
||||
Db::getInstance()->Execute('DELETE FROM '._DB_PREFIX_.'image_shop WHERE `id_image`='.(int)$id_image.' AND `id_shop`='.(int)$id_shop);
|
||||
}
|
||||
}
|
||||
|
||||
if (Tools::isSubmit('getNotifications'))
|
||||
{
|
||||
$notification = new Notification;
|
||||
die(Tools::jsonEncode($notification->getLastElements()));
|
||||
}
|
||||
|
||||
if (Tools::isSubmit('updateElementEmployee') && Tools::getValue('updateElementEmployeeType'))
|
||||
{
|
||||
$notification = new Notification;
|
||||
die($notification->updateEmployeeLastElement(Tools::getValue('updateElementEmployeeType')));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user