[-] MO : HomeSlider
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8249 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -90,12 +90,12 @@ class HomeSlide extends ObjectModel
|
||||
parent::__construct($id_slide, $id_lang, $id_shop);
|
||||
}
|
||||
|
||||
public function add()
|
||||
public function add($autodate = true, $nullValues = false)
|
||||
{
|
||||
$context = Context::getContext();
|
||||
$id_shop = $context->shop->getID();
|
||||
|
||||
$res = parent::add();
|
||||
$res = parent::add($autodate, $nullValues);
|
||||
$res &= Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('
|
||||
INSERT INTO `'._DB_PREFIX_.'homeslider` (`id_shop`, `id_slide`)
|
||||
VALUES('.(int)$id_shop.', '.(int)$this->id.')'
|
||||
|
||||
Reference in New Issue
Block a user