// Replace public by protected in override methods
This commit is contained in:
1 parent
a91fa11567
commit
fd0028cd60
12 files changed
+18
-18
No files matched your search
@@ -72,7 +72,7 @@ class AdminCartRulesControllerCore extends AdminController
|
||||
return parent::postProcess();
|
||||
}
|
||||
|
||||
public function afterUpdate($current_object)
|
||||
protected function afterUpdate($current_object)
|
||||
{
|
||||
// All the associations are deleted for an update, then recreated when we call the "afterAdd" method
|
||||
$id_cart_rule = Tools::getValue('id_cart_rule');
|
||||
@@ -86,7 +86,7 @@ class AdminCartRulesControllerCore extends AdminController
|
||||
}
|
||||
|
||||
/* @TODO Move this function into CartRule */
|
||||
public function afterAdd($currentObject)
|
||||
protected function afterAdd($currentObject)
|
||||
{
|
||||
// Add restrictions for generic entities like country, carrier and group
|
||||
foreach (array('country', 'carrier', 'group') as $type)
|
||||
|
||||
Reference in new issue
Block a user