projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0283f75
)
DataObjects/Core_notify.php
author
Alan Knowles
<alan@roojs.com>
Wed, 14 Oct 2015 06:41:48 +0000
(14:41 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 14 Oct 2015 06:41:48 +0000
(14:41 +0800)
DataObjects/Core_notify.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
8199de9
..
4c02e6f
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-96,13
+96,14
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
$x = DB_DataObject::Factory($this->tableName());
$x->object($obj);
$x->person($person);
$x = DB_DataObject::Factory($this->tableName());
$x->object($obj);
$x->person($person);
- $x->onid = $obj->id;
- $x->ontable = $obj->tableName;
- $x->person_table = $person->person_table;
- $x->
- $person_table = empty($this->person_table) ? 'Person' : $this->person_table;
- $col = $person_table == "Person" ? 'person_id' : $person_table . '_id';
-
+ if (!empty($evtype)) {
+ $x->evtype = $evtype;
+ }
+ if ($x->count() != 1) {
+ return false;
+ }
+ $x->find(true);
+ return $x;
}
}