[Notice] Fix clearReplies() and clearRepeats()
This commit is contained in:
parent
7c727e2969
commit
5b6a64b125
@ -2452,7 +2452,7 @@ class Notice extends Managed_DataObject
|
|||||||
if ($replyNotice->find()) {
|
if ($replyNotice->find()) {
|
||||||
while ($replyNotice->fetch()) {
|
while ($replyNotice->fetch()) {
|
||||||
$orig = clone($replyNotice);
|
$orig = clone($replyNotice);
|
||||||
$replyNotice->reply_to = null;
|
$replyNotice->reply_to = $replyNotice->sqlValue('NULL');
|
||||||
$replyNotice->update($orig);
|
$replyNotice->update($orig);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2507,7 +2507,7 @@ class Notice extends Managed_DataObject
|
|||||||
if ($repeatNotice->find()) {
|
if ($repeatNotice->find()) {
|
||||||
while ($repeatNotice->fetch()) {
|
while ($repeatNotice->fetch()) {
|
||||||
$orig = clone($repeatNotice);
|
$orig = clone($repeatNotice);
|
||||||
$repeatNotice->repeat_of = null;
|
$repeatNotice->repeat_of = $repeatNotice->sqlValue('NULL');
|
||||||
$repeatNotice->update($orig);
|
$repeatNotice->update($orig);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user