Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
@@ -4565,6 +4565,7 @@ class ProductCore extends ObjectModel
|
|||||||
*/
|
*/
|
||||||
public function setWsAccessories($accessories)
|
public function setWsAccessories($accessories)
|
||||||
{
|
{
|
||||||
|
$this->deleteAccessories();
|
||||||
foreach ($accessories as $accessory)
|
foreach ($accessories as $accessory)
|
||||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'accessory` (`id_product_1`, `id_product_2`) VALUES ('.(int)$this->id.', '.(int)$accessory['id'].')');
|
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'accessory` (`id_product_1`, `id_product_2`) VALUES ('.(int)$this->id.', '.(int)$accessory['id'].')');
|
||||||
|
|
||||||
|
|||||||
@@ -673,6 +673,10 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
|
|
||||||
// Get the return value of current method
|
// Get the return value of current method
|
||||||
$echo = $module->{$method}();
|
$echo = $module->{$method}();
|
||||||
|
|
||||||
|
// After a successful install of a single module that has a configuration method, to the configuration page
|
||||||
|
if ($key == 'install' && $echo === true && strpos(Tools::getValue('install'), '|') === false && method_exists($module, 'getContent'))
|
||||||
|
Tools::redirectAdmin(self::$currentIndex.'&token='.$this->token.'&configure='.$module->name.'&conf=12');
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the method called is "configure" (getContent method), we show the html code of configure page
|
// If the method called is "configure" (getContent method), we show the html code of configure page
|
||||||
|
|||||||
Reference in New Issue
Block a user