projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cbb253
)
DataObjects/Office.php
author
Chris
<chris@roojs.com>
Tue, 8 Jan 2013 08:49:07 +0000
(16:49 +0800)
committer
Chris
<chris@roojs.com>
Tue, 8 Jan 2013 08:49:07 +0000
(16:49 +0800)
DataObjects/Office.php
patch
|
blob
|
history
diff --git
a/DataObjects/Office.php
b/DataObjects/Office.php
index
fb28fdb
..
7d3d0b0
100644
(file)
--- a/
DataObjects/Office.php
+++ b/
DataObjects/Office.php
@@
-31,7
+31,8
@@
class Pman_Core_DataObjects_Office extends DB_DataObject
$tn = $this->tableName();
//$this->selectAdd(" i18n_translate('c' , 'CN', 'en') as country_name");
$p = DB_DataObject::factory('Person');
- $p->whereAdd("DISTINECT(Person.office_id) > 0");
+ $p->whereAdd("Person.office_id > 0");
+ $p->selectAdd("DISTINECT(Person.office_id)");
$officeIds = $p->fetchAll('office_id');
$this->whereAddIn('id', $officeIds, 'INT');