function applyFilters($q, $au)
{
+
+ //DB_DataObject::debugLevel(1);
$x = DB_DataObject::factory('Companies');
- $x->isOwner = 1;
+ $x->comptype= 'OWNER';
$x->find(true);
if (!empty($q['query']['company_project_id'])) {
SELECT distinct(company_id) FROM ProjectDirectory where project_id IN ($pids)
) $add" );
- // DB_DataObject::debugLevel(1);
+
}
if (!empty($q['query']['comptype'])) {
}
+ if (!empty($q['query']['province'])) {
+ $prov = $this->escape($q['query']['province']);
+ $this->whereAdd("province LIKE '$prov%'");
+
+
+ }
+
}
function toEventString() {
return $this->name;