From: Alan Date: Fri, 13 Oct 2023 05:17:26 +0000 (+0800) Subject: fix old sent X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=44d8e6d3b05916ccd5c31a3428266c7ea25e3b87 fix old sent --- diff --git a/NotifySend.php b/NotifySend.php index 7fcf583f..410aa64c 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -135,6 +135,19 @@ class Pman_Core_NotifySend extends Pman $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) {