DataObjects/Office.php
authorChris <chris@roojs.com>
Wed, 9 Jan 2013 06:48:27 +0000 (14:48 +0800)
committerChris <chris@roojs.com>
Wed, 9 Jan 2013 06:48:27 +0000 (14:48 +0800)
DataObjects/Office.php

index ea0d1d6..bcd2bbe 100644 (file)
@@ -31,7 +31,7 @@ class Pman_Core_DataObjects_Office extends DB_DataObject
         if(!empty($q['_join_country_with_person'])){
             $tn = $this->tableName();
             $this->selectAdd();
-            $this->selectAdd(" i18n_translate('c' , join_office_id.country, 'en') as office_id_country_name");
+            $this->selectAdd(" i18n_translate('c' , country, 'en') as office_id_country_name");
             $this->_extra_col = array('office_country_name');
             //$this->query('_distinct=office_id_country&cols=office_id_country,office_id_country_name');
             //then the query should be _distinct=office_id_country&cols=office_id_country,office_id_country_name