* Adjust for ticket 326.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user