From 44d8e6d3b05916ccd5c31a3428266c7ea25e3b87 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 13 Oct 2023 13:17:26 +0800 Subject: [PATCH] fix old sent --- NotifySend.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) { -- 2.39.2