projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6142cd2
)
Import/Core_email.php
author
Alan Knowles
<alan@roojs.com>
Tue, 6 Oct 2015 06:06:04 +0000
(14:06 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 6 Oct 2015 06:06:04 +0000
(14:06 +0800)
Import/Core_email.php
patch
|
blob
|
history
diff --git
a/Import/Core_email.php
b/Import/Core_email.php
index
a716f3d
..
0e4edef
100644
(file)
--- a/
Import/Core_email.php
+++ b/
Import/Core_email.php
@@
-93,13
+93,15
@@
class Pman_Core_Import_Core_email extends Pman
$from_email = $from_str[0]->mailbox . '@' . $from_str[0]->host;
$from_email = $from_str[0]->mailbox . '@' . $from_str[0]->host;
- $c->setFrom(array(
- 'bodytext' => $parts[2],
-
- ));
+
if ($c->id) {
if ($c->id) {
-
- $c->update();
+ $cc =clone($c);
+ $c->setFrom(array(
+ 'bodytext' => $parts[2],
+ 'updated_dt' => date('Y-m-d H:i:s'),
+ ));
+
+ $c->update($cc);
} else {
$c->setFrom(array(
} else {
$c->setFrom(array(
@@
-107,7
+109,7
@@
class Pman_Core_Import_Core_email extends Pman
'from_email' => $from_email,
'subject' => $parts[1]['Subject'],
'name' => $template_name,
'from_email' => $from_email,
'subject' => $parts[1]['Subject'],
'name' => $template_name,
-
+ 'bodytext' => $parts[2],
'updated_dt' => date('Y-m-d H:i:s'),
'created_dt' => date('Y-m-d H:i:s'),
));
'updated_dt' => date('Y-m-d H:i:s'),
'created_dt' => date('Y-m-d H:i:s'),
));