projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3c01b8
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Fri, 3 Jun 2016 06:43:23 +0000
(14:43 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 3 Jun 2016 06:43:23 +0000
(14:43 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
cc79993
..
79b0bb1
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-731,6
+731,7
@@
class Pman_Core_UpdateDatabase extends Pman
foreach($emails as $name=>$data) {
$cm = DB_DataObject::factory('core_email');
$update = $cm->get('name', $name);
+ $old = clone($cm);
if (empty($cm->bcc_group)) {
if (empty($data['bcc_group'])) {
@@
-754,7
+755,9
@@
class Pman_Core_UpdateDatabase extends Pman
if (!$method->isStatic()) {
$this->jerr("template {$name} does not have a test method {$clsname}::test_{$name}");
}
-
+ if ($up) {
+ $cm->update($old);
+ }
// $basedir = $this->bootLoader->rootDir . $mail_template_dir;