Jump to content

Module "Navigation à facette" is hanging product->add() routine


SITOLOG - F Bugnet

Recommended Posts

Hi,

Clearly a coding bug in the productSave hook code of the module "Navigation à facettes" (sorry I don't know its english name).

Demonstrated on PS 17200 and 17202  100% fresh installs.

This module is hooked to productSave. So it is called each time PrestaShop run the product->Add() routine (line 566 of the product.php class) :

       

Hook::exec('actionProductSave', array('id_product' => (int)$this->id, 'product' => $this));

 

When successfull, product->Add() should return true. 

But when this module is activated (and it is activated by default), it is returning false !!!!

As this hook is called many time (each time a product is modified), this false retun is creating many border side effects that may have not yet discovered, or never understood so far.

I discovered this bug while trying to debug one of my modules which is using the product->Add() routine. The bug was not in my module but due to this navigation addons. After I inactivated this addons, my module worked fine.

Regards

Franck

 

 

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...