projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74b34dc
)
DataObjects/Person.php
author
Edward
<edward@roojs.com>
Tue, 7 Oct 2014 06:45:25 +0000
(14:45 +0800)
committer
Edward
<edward@roojs.com>
Tue, 7 Oct 2014 06:45:25 +0000
(14:45 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
41a4a65
..
8d3a809
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-666,6
+666,11
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
function applyFilters($q, $au, $roo)
{
//DB_DataObject::DebugLevel(1);
+
+ if (!empty($q['query']['is_owner'])) {
+ $this->whereAdd(" join_company_id_id.comptype = 'OWNER'");
+ }
+
if (!empty($q['query']['person_not_internal'])) {
$this->whereAdd(" join_company_id_id.isOwner = 0 ");
}