[+] 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:
1 parent
cb5fc11308
commit
9a169ae91f
1 file changed
+12
@@ -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);
|
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