projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfee50d
)
DataObjects/Events.php
author
Alan Knowles
<alan@roojs.com>
Wed, 28 Sep 2011 04:34:13 +0000
(12:34 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 28 Sep 2011 04:34:13 +0000
(12:34 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
2b34713
..
4ef4c44
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-83,8
+83,15
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
if ($n == $o) {
continue;
}
-
-
+ $x = DB_DataObject::factory('core_event_audit');
+ $x->setFrom(array(
+ 'event_id' => $this->id,
+ 'name' => $k,
+ 'old_value_id' => $x->findLast($this, $name),
+ 'newvalue' => $n
+
+ ));
+ $x->insert();
$ret += $this->auditChange($k, $new, $old);
}
return $ret;