fix warnings from pm_advancedshearch
This commit is contained in:
parent
819f320ff5
commit
e0d7546ffc
@ -4379,7 +4379,7 @@ XML;
|
||||
) {
|
||||
$id_product = Tools::getValue('id_product');
|
||||
$product = New Product($id_product);
|
||||
AdvancedSearchClass::indexCriterionsFromProduct($product);
|
||||
AdvancedSearchClass::indexCriterionsFromProduct($product);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4393,10 +4393,22 @@ XML;
|
||||
}
|
||||
|
||||
public function hookUpdateProduct($params) {
|
||||
// antadis fix 06/05/2017 : no correction made here because this is an old bug, so it never worked !
|
||||
// We should use params['id_product'], params['product'] does not exist.
|
||||
// Fix it later...
|
||||
return;
|
||||
// antadis end fix 06/05/2017
|
||||
|
||||
AdvancedSearchClass::indexCriterionsFromProduct($params ['product']);
|
||||
}
|
||||
|
||||
public function hookAddProduct($params) {
|
||||
// antadis fix 06/05/2017 : no correction made here because this is an old bug, so it never worked !
|
||||
// We should use params['id_product'], params['product'] does not exist.
|
||||
// Fix it later...
|
||||
return;
|
||||
// antadis end fix 06/05/2017
|
||||
|
||||
AdvancedSearchClass::indexCriterionsFromProduct($params ['product'], true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user