Merge branch 'ticket_326' into 'master'

code for Ticket 326 bug 31981

See merge request easycorp/zentaopms!6891
This commit is contained in:
王怡栋
2023-02-08 09:17:24 +00:00
+1 -1
View File
@@ -1247,7 +1247,7 @@ class storyModel extends model
if(empty($childrenStatus)) return $this->dao->update(TABLE_STORY)->set('parent')->eq('0')->where('id')->eq($parentID)->exec();
$status = $oldParentStory->status;
if(count($childrenStatus) == 1 and $oldParentStory->status != 'changing' and $oldParentStory->status != 'reviewing')
if(count($childrenStatus) == 1)
{
$status = current($childrenStatus);
if($status == 'draft' or $status == 'changing') $status = 'active';