From 767d6efa0366858a1b5283dc96ed8604258bbcf3 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Mon, 14 Mar 2022 05:27:23 +0000 Subject: [PATCH] Fix bug #50409. --- module/story/model.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/story/model.php b/module/story/model.php index 71772259f9..cbf6744369 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1986,6 +1986,9 @@ class storyModel extends model ->remove('comment') ->get(); $this->dao->update(TABLE_STORY)->data($story)->autoCheck()->where('id')->eq($storyID)->exec(); + + if($this->post->status == 'active') $this->dao->delete()->from(TABLE_STORYREVIEW)->where('story')->eq($storyID)->exec(); + $this->setStage($storyID); /* Update parent story status. */