* Adjust for ticket 326.

This commit is contained in:
liuhong
2023-02-08 06:58:27 +00:00
parent e16cf8278c
commit ffd0c2ce7f
+1 -6
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 and $oldParentStory->status != 'reviewing')
{
$status = current($childrenStatus);
if($status == 'draft' or $status == 'changing') $status = 'active';
@@ -1257,11 +1257,6 @@ class storyModel extends model
$status = 'active';
}
if(count($childrenStatus) == 1 and ($oldParentStory->status = 'changing' or $oldParentStory->status = 'reviewing'))
{
$status = 'closed';
}
if($status and $oldParentStory->status != $status)
{
$now = helper::now();