Skip to content

Commit bf5ed60

Browse files
bramleymarianaballa
authored andcommitted
When marking a message as sent, set the sent field to the current time.
1 parent 6804d32 commit bf5ed60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public_html/lists/admin/messages.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
verifyCsrfGetToken();
287287
$markSent = sprintf('%d', $_GET['markSent']);
288288
$action_result .= $GLOBALS['I18N']->get('Marking as sent ')." $markSent ..";
289-
$result = Sql_query(sprintf('update %s set status = "sent", repeatinterval = 0,requeueinterval = 0 where id = %d and (status = "suspended") %s',
289+
$result = Sql_query(sprintf('update %s set status = "sent", sent = now(), repeatinterval = 0,requeueinterval = 0 where id = %d and (status = "suspended") %s',
290290
$tables['message'], $markSent, $ownerselect_and));
291291
$suc6 = Sql_Affected_Rows();
292292
if ($suc6) {
@@ -314,7 +314,7 @@
314314
break;
315315
case 'markallsent':
316316
$action_result .= $GLOBALS['I18N']->get('Marking all as sent ').' ..';
317-
$result = Sql_query(sprintf('update %s set status = "sent", repeatinterval = 0,requeueinterval = 0 where (status = "suspended") %s',
317+
$result = Sql_query(sprintf('update %s set status = "sent", sent = now(), repeatinterval = 0,requeueinterval = 0 where (status = "suspended") %s',
318318
$tables['message'], $markSent, $ownerselect_and));
319319
$suc6 = Sql_Affected_Rows();
320320
if ($suc6) {

0 commit comments

Comments
 (0)