From 579120df7087c49a7940b3debe1aad41a3ef413a Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Sun, 26 Jul 2020 15:12:00 +0300 Subject: [PATCH] [Notice] Fix clearReplies() and clearRepeats() --- classes/Notice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 39fc3c0c12..f24283fa60 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2452,7 +2452,7 @@ class Notice extends Managed_DataObject if ($replyNotice->find()) { while ($replyNotice->fetch()) { $orig = clone($replyNotice); - $replyNotice->reply_to = null; + $replyNotice->reply_to = $replyNotice->sqlValue('NULL'); $replyNotice->update($orig); } } @@ -2507,7 +2507,7 @@ class Notice extends Managed_DataObject if ($repeatNotice->find()) { while ($repeatNotice->fetch()) { $orig = clone($repeatNotice); - $repeatNotice->repeat_of = null; + $repeatNotice->repeat_of = $repeatNotice->sqlValue('NULL'); $repeatNotice->update($orig); } }