From dc98b821b5c207ee6f8cc55a79d35aff1c8ca51e Mon Sep 17 00:00:00 2001 From: rGaillard Date: Wed, 26 Sep 2012 14:21:44 +0000 Subject: [PATCH] // small fix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17571 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Category.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/Category.php b/classes/Category.php index 5f8f0dc15..af1ed9390 100644 --- a/classes/Category.php +++ b/classes/Category.php @@ -944,6 +944,8 @@ class CategoryCore extends ObjectModel public function getParentsCategories($id_lang = null) { $context = Context::getContext()->cloneContext(); + $context->shop = clone($context->shop); + if (is_null($id_lang)) $id_lang = $context->language->id;