projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix old data
[Pman.Core]
/
NotifySend.php
diff --git
a/NotifySend.php
b/NotifySend.php
index
410aa64
..
1140470
100644
(file)
--- a/
NotifySend.php
+++ b/
NotifySend.php
@@
-139,12
+139,12
@@
class Pman_Core_NotifySend extends Pman
$cev = DB_DataObject::Factory('Events');
$cev->on_table = $this->table;
$cev->on_id = $w->id;
$cev = DB_DataObject::Factory('Events');
$cev->on_table = $this->table;
$cev->on_id = $w->id;
- $cev->
action = 'NOTIFYSENT'
;
+ $cev->
whereAdd("action IN ('NOTIFYSENT', 'NOTIFYFAIL')")
;
$cev->limit(1);
if ($cev->count()) {
$cev->find(true);
$cev->limit(1);
if ($cev->count()) {
$cev->find(true);
- $w->flagDone($cev,
'alreadysent
');
- $this->errorHandler(
"SENT
(fix old) ". $cev->remarks);
+ $w->flagDone($cev,
$cev->action == 'NOTIFYSENT' ? 'alreadysent' : '
');
+ $this->errorHandler(
$cev->action . "
(fix old) ". $cev->remarks);
}
}