// Fix getContextType()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13596 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
8596c81daf
commit
6e6c69e617
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -942,7 +942,7 @@ class CarrierCore extends ObjectModel
|
|||||||
if (!Validate::isInt($id_tax_rules_group))
|
if (!Validate::isInt($id_tax_rules_group))
|
||||||
die(Tools::displayError());
|
die(Tools::displayError());
|
||||||
|
|
||||||
if (Context::getContext()->shop->getContextType() != Shop::CONTEXT_SHOP)
|
if (Shop::getContext() != Shop::CONTEXT_SHOP)
|
||||||
$all_shops = true;
|
$all_shops = true;
|
||||||
|
|
||||||
$this->deleteTaxRulesGroup($all_shops);
|
$this->deleteTaxRulesGroup($all_shops);
|
||||||
|
|||||||
+1
-1
@@ -4057,7 +4057,7 @@ class ProductCore extends ObjectModel
|
|||||||
die(Tools::displayError());
|
die(Tools::displayError());
|
||||||
$this->deleteTaxRulesGroup($all_shops);
|
$this->deleteTaxRulesGroup($all_shops);
|
||||||
|
|
||||||
if (Context::getContext()->shop->getContextType() != Shop::CONTEXT_SHOP)
|
if (Shop::getContext() != Shop::CONTEXT_SHOP)
|
||||||
$all_shops = true;
|
$all_shops = true;
|
||||||
|
|
||||||
if ($all_shops)
|
if ($all_shops)
|
||||||
|
|||||||
Reference in new issue
Block a user