From ede5164043893163e2302488d93438b9af82a701 Mon Sep 17 00:00:00 2001 From: Gytautas Date: Fri, 19 Jan 2024 14:32:01 +0200 Subject: [PATCH] added additional filtration to filter active countries only --- src/Repository/PhonePrefixRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Repository/PhonePrefixRepository.php b/src/Repository/PhonePrefixRepository.php index 2bec758f..097f511b 100644 --- a/src/Repository/PhonePrefixRepository.php +++ b/src/Repository/PhonePrefixRepository.php @@ -57,6 +57,8 @@ public function getCallPrefixesFrontOffice() $query = new DbQuery(); $query->select('c.`call_prefix`'); $query->from('country', 'c'); + $query->where('active=1'); + $resource = Db::getInstance()->query($query); $result = []; while ($row = Db::getInstance()->nextRow($resource)) {