// for a change... ontable - will be the ticked, and onid will be the ticket id..
$obj = $this->objectCached();
-
+ $target = $obj;
if ($obj->tableName() == 'mtrack_ticket') {
$obj = $obj->project();
+ $target = $obj;
} else {
- $obj = empty($this->branch) ? $obj : $obj->branchObject($this->branch);
+ $target = empty($this->branch) ? $obj : $obj->branchObject($this->branch);
}
if ($obj) {
$obj->pid(),
"medium='ENDOFDAYMAIL'",
// end of day..
- date('Y-m-d 23:59:59')
+ date('Y-m-d 23:59:59'),
+ $target->tableName(),
+ $target->pid()
);
}
}