projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
338618e
)
DataObjects/Projects.php
author
Chris
<chris@roojs.com>
Tue, 12 Jun 2012 07:44:59 +0000
(15:44 +0800)
committer
Chris
<chris@roojs.com>
Tue, 12 Jun 2012 07:44:59 +0000
(15:44 +0800)
DataObjects/Projects.php
patch
|
blob
|
history
diff --git
a/DataObjects/Projects.php
b/DataObjects/Projects.php
index
d5c9e20
..
869cfc9
100644
(file)
--- a/
DataObjects/Projects.php
+++ b/
DataObjects/Projects.php
@@
-182,6
+182,8
@@
class Pman_Core_DataObjects_Projects extends DB_DataObject
$oo = clone($this);
if (empty($this->code)) {
$this->code = 'C' + $this->client_id + '-P' + $this->id;
+ $dt = new DateTime();
+ $this->updated_dt = $dt->format('Y-m-d H:i:s');
$this->update($oo);
}
}
@@
-191,6
+193,8
@@
class Pman_Core_DataObjects_Projects extends DB_DataObject
$oo = clone($this);
if (empty($this->code)) {
$this->code = 'C' + $this->client_id + '-P' + $this->id;
+ $dt = new DateTime();
+ $this->updated_dt = $dt->format('Y-m-d H:i:s');
$this->update($oo);
}