projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5db6d18
)
fix old sent
author
Alan
<alan@roojs.com>
Fri, 13 Oct 2023 05:17:26 +0000
(13:17 +0800)
committer
Alan
<alan@roojs.com>
Fri, 13 Oct 2023 05:17:26 +0000
(13:17 +0800)
NotifySend.php
patch
|
blob
|
history
diff --git
a/NotifySend.php
b/NotifySend.php
index
7fcf583
..
410aa64
100644
(file)
--- a/
NotifySend.php
+++ b/
NotifySend.php
@@
-135,6
+135,19
@@
class Pman_Core_NotifySend extends Pman
$this->errorHandler("message has been sent already.\n");
}
$this->errorHandler("message has been sent already.\n");
}
+ // we have a bug with msgid not getting filled.
+ $cev = DB_DataObject::Factory('Events');
+ $cev->on_table = $this->table;
+ $cev->on_id = $w->id;
+ $cev->action = 'NOTIFYSENT';
+ $cev->limit(1);
+ if ($cev->count()) {
+ $cev->find(true);
+ $w->flagDone($cev, 'alreadysent');
+ $this->errorHandler( "SENT (fix old) ". $cev->remarks);
+ }
+
+
$o = $w->object();
if ($o === false) {
$o = $w->object();
if ($o === false) {