From dbe06a30573631762adc16aa1832c3e6cc204ff4 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Mon, 29 Jul 2013 11:46:23 +0200 Subject: [PATCH] country loop --- core/lib/Thelia/Core/Template/Loop/Country.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/lib/Thelia/Core/Template/Loop/Country.php b/core/lib/Thelia/Core/Template/Loop/Country.php index ab064b5c9..c9918edce 100755 --- a/core/lib/Thelia/Core/Template/Loop/Country.php +++ b/core/lib/Thelia/Core/Template/Loop/Country.php @@ -91,6 +91,12 @@ class Country extends BaseLoop $search->filterByAreaId(null, Criteria::ISNULL); } + $exclude = $this->getExclude(); + + if (!is_null($exclude)) { + $search->filterById($exclude, Criteria::NOT_IN); + } + /** * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. *