[Notice] Fix clearReplies() and clearRepeats()

This commit is contained in:
Alexei Sorokin 2020-07-26 15:12:00 +03:00
parent 63eb323e8b
commit 579120df70

View File

@ -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);
}
}