From: leon Date: Tue, 30 Aug 2022 04:32:46 +0000 (+0800) Subject: Changed DataObjects/Core_company.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=fa0eb725fe2837893adaec58ce4a5ce275c14b1c;p=Pman.Core Changed DataObjects/Core_company.php --- diff --git a/DataObjects/Core_company.php b/DataObjects/Core_company.php index 054c0e8d..97034731 100644 --- a/DataObjects/Core_company.php +++ b/DataObjects/Core_company.php @@ -42,7 +42,9 @@ class Pman_Core_DataObjects_Core_Company extends DB_DataObject { $tn = $this->tableName(); - $this->selectAdd("i18n_translate('c' , {$tn}.country, 'en') as country_display_name "); + if (empty($q['_distinct']) { + $this->selectAdd("i18n_translate('c' , {$tn}.country, 'en') as country_display_name "); + } $tn = $this->tableName(); //DB_DataObject::debugLevel(1);