public $phone_mobile; // varchar(32) NOT NULL DEFAULT '';
public $phone_direct; // varchar(32) NOT NULL DEFAULT '';
+ public $countries; // VARCHAR(128) NULL;
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
function getEmailFrom()
{
+ if (empty($this->name)) {
+ return $this->email;
+ }
return '"' . addslashes($this->name) . '" <' . $this->email . '>';
}
function toEventString()
$this->whereAdd(" join_company_id_id.isOwner = 0 ");
}
-
if (!empty($q['query']['person_internal_only_all'])) {
}
+ // #2307 Search Country!!
+ if (!empty($q['query']['in_country'])) {
+ // DB_DataObject::debugLevel(1);
+ $inc = $q['query']['in_country'];
+ $this->whereAdd("$tn_p.countries LIKE '%{$inc}%'");
+ }
+
if (!empty($q['query']['not_in_directory'])) {
// it's a Person list..
// DB_DATaobjecT::debugLevel(1);
if(!empty($q['query']['name'])){
$this->whereAdd("
- $tn.name LIKE '%{$this->escape($q['query']['name'])}%'
+ Person.name LIKE '%{$this->escape($q['query']['name'])}%'
");
}
");*/
}
- //
}
function setFromRoo($ar, $roo)
{
}
return false;
}
- function onInsert($req, $roo)
+
+ function onInsert($req, $roo)
{
$p = DB_DataObject::factory('person');